Last Chance
137E2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 5
Input
Abo
Output
3 1
Sample 2of 5
Input
OEIS
Output
3 1
Sample 3of 5
Input
auBAAbeelii
Output
9 3
Sample 4of 5
Input
AaaBRAaaCAaaDAaaBRAaa
Output
18 4
Sample 5of 5
Input
EA
Output
No solution
58%
137E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)