cf/mirror

Rare Coins

CF
1948F2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
2 2
1 0
0 2
2 2
1 1
Output
748683265 748683265
Sample 2of 2
Input
4 3
2 3 4 5
1 0 7 3
3 3
2 3
1 4
Output
997756929 273932289 1
1948F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)