K-Dominant Character
888C1400· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
abacaba
Output
2
Sample 2of 3
Input
zzzzz
Output
1
Sample 3of 3
Input
abcde
Output
3
58%
888C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
abacaba
2
zzzzz
1
abcde
3