|
||||||||||
Huge StringTime Limit: 3000/3000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 698 Accepted Submission(s): 149 Problem Description You can get a huge string from a tiny one S by repeating doing following replacement N times. What's the substring containing M characters starting at the index K? Input There are multiple test cases. Process to the End of File. The first line of each test contains the string S made up of nonspacing graphic characters, whose length doesn't exceed 100. The second line contains three integers: 0 ¡Ü N ¡Ü 100, 1 ¡Ü M ¡Ü 200 and 0 ¡Ü K ¡Ü 1081. Output For each test case, output the substring [K, min(length(S), K + M)) Sample Input
Sample Output
Hint H.html download ·½±ãͼÖÐÎÄ×Ö¸´ÖÆ http://pan.baidu.com/share/link?shareid=463767611&uk=352484775 Author Zejun Wu (watashi) Source | ||||||||||
|