Remove Adjacent
1321C1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
8bacabcab
Output
4
Sample 2of 3
Input
4bcda
Output
3
Sample 3of 3
Input
6abbbbb
Output
5
58%
1321C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
8bacabcab
4
4bcda
3
6abbbbb
5