| ||||||||||
Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Language: String's Puzzle
Description ![]()
To better study this puzzle, please make a program to given a n-length string (1<=n<=26), output the number of the string. Input There are several test cases. Each data is made up of two lines. The first line is number n (1<=n<=26) The second line is a string with its length of n. n=0 means end of the input. Output Output the string number for each group of data tested. Sample Input 3 ABC 3 ZYX 3 ABD 4 ABCD 0 Sample Output 0 15599 1 0 Source |
[Submit] [Go Back] [Status] [Discuss]
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator