cf/mirror

Inverse Problem

CF
1910I2700· international gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3 2 2
a
Output
6
Sample 2of 4
Input
5 3 3
bc
Output
15
Sample 3of 4
Input
34 12 26
codeforces
Output
988024123
Sample 4of 4
Input
5 3 1
aa
Output
1
1910I.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)