cf/mirror

Super-Short-Polynomial-San

CF
2159E3500· legendary gm7s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3 2 1
11
0 0
0 1
0 0
2 1
4 6
3 0
7 7
13 12
25 31
31379 9237
396176013 396306657
Output
1
1
3
6
1
5
15
27
36
396240845
819003547
2159E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)