Serval and Bonus Problem
1153F2600· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
1 1 1
Output
332748118
Sample 2of 4
Input
6 2 1
Output
760234711
Sample 3of 4
Input
7 5 3
Output
223383352
Sample 4of 4
Input
97 31 9984524
Output
267137618
58%
1153F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)