Minimum Sum
910C1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3abdeaj
Output
47
Sample 2of 3
Input
5abcdefghijbdefaccbdg
Output
136542
Sample 3of 3
Input
3aajjaa
Output
44
58%
910C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)