cf/mirror

Divisor Paths

CF
1334E2200· master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
12
3
4 4
12 1
3 4
Output
1
3
1
Sample 2of 3
Input
1
1
1 1
Output
1
Sample 3of 3
Input
288807105787200
4
46 482955026400
12556830686400 897
414 12556830686400
4443186242880 325
Output
547558588
277147129
457421435
702277623
1334E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…