cf/mirror

Colored Boots

CF
1141D1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
10
codeforces
dodivthree
Output
5
7 8
4 9
2 2
9 10
3 1
Sample 2of 4
Input
7
abaca?b
zabbbcc
Output
5
6 5
2 3
4 6
7 4
1 2
Sample 3of 4
Input
9
bambarbia
hellocode
Output
0
Sample 4of 4
Input
10
code??????
??????test
Output
10
6 2
1 6
7 3
3 5
4 8
9 7
5 1
2 4
10 9
8 10
1141D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)