![]() | ||||
Online Judge | Problem Set | Authors | Online Contests | User |
---|---|---|---|---|
Web Board Home Page F.A.Qs Announcement | Current Contest Past Contests Scheduled Contests Award Contest |
Big String
Description You are given a string and supposed to do some string manipulations. Input The
first line of the input contains the initial string. You can assume
that it is non-empty and its length does not exceed 1,000,000. The second line contains the number of manipulation commands N (0 < N ¡Ü 2,000). The following N lines describe a command each. The commands are in one of the two formats below: All characters in the input are digits or lowercase letters of the English alphabet. Output For each Q command output one line containing only the single character queried. Sample Input Sample Output Source |
[Submit] [Go Back] [Status] [Discuss]
All Copyright Reserved 2003-2005 Ying Fuchen,Xu Pengcheng
Any problem, Please Contact Administrator