#1927 Repeating Characters

13  5 s   128 MB  

Description

문제 링크 (pdf)

Sample Input

Sample Output

2
1 3 ABC
2 5 /HTP
1 AAABBBCCC
2 /////HHHHHTTTTTPPPPP

Source

2011 ACM-ICPC Greater New York Region