cf/mirror

Catching Cheaters

CF
1446B1800· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 5
abba
babab
Output
5
Sample 2of 3
Input
8 10
bbbbabab
bbbabaaaaa
Output
12
Sample 3of 3
Input
7 7
uiibwws
qhtkxcn
Output
0
1446B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)