cf/mirror

Minimum Sum

CF
910C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
ab
de
aj
Output
47
Sample 2of 3
Input
5
abcdef
ghij
bdef
accbd
g
Output
136542
Sample 3of 3
Input
3
aa
jj
aa
Output
44
910C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)