cp/codeforces/855/io/1800b.1.cpin

11 lines
56 B
Text

5
11 2
aAaaBACacbE
2 2
ab
4 1
aaBB
6 0
abBAcC
5 3
cbccb