cf/mirror

Remove Adjacent

CF
1321C1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
8
bacabcab
Output
4
Sample 2of 3
Input
4
bcda
Output
3
Sample 3of 3
Input
6
abbbbb
Output
5
1321C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)