cf/mirror

Swap Letters

CF
1215C1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4
abab
aabb
Output
2
3 3
3 2
Sample 2of 3
Input
1
a
b
Output
-1
Sample 3of 3
Input
8
babbaabb
abababaa
Output
3
2 6
1 3
7 8
1215C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)