cf/mirror

GCD on a grid

CF
1955G1900· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
2 3
30 20 30
15 25 40
3 3
12 4 9
3 12 2
8 3 12
2 4
2 4 6 8
1 3 6 9
Output
10
3
1
1955G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…