cf/mirror

The Fair Nut and Strings

CF
1083B2000· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 4
aa
bb
Output
6
Sample 2of 3
Input
3 3
aba
bba
Output
8
Sample 3of 3
Input
4 5
abbb
baaa
Output
8
1083B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)