cf/mirror

Removal of Unattractive Pairs

CF
1907C1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
4
aabc
5
abaca
10
avbvvcvvvd
7
abcdefg
5
dabbb
8
aacebeaa
7
bbbbacc
6
dacfcc
6
fdfcdc
9
dbdcfbbdc
Output
0
1
2
1
1
0
1
0
0
1
1907C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)