Inverse Problem
1910I2700· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
3 2 2a
Output
6
Sample 2of 4
Input
5 3 3bc
Output
15
Sample 3of 4
Input
34 12 26codeforces
Output
988024123
Sample 4of 4
Input
5 3 1aa
Output
1
58%
1910I.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)