Euclid Guess
1684G2800· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
7 201 8 1 6 3 2 3
Output
319 1115 93 7
Sample 2of 4
Input
2 107 1
Output
-1
Sample 3of 4
Input
2 151 7
Output
115 8
Sample 4of 4
Input
1 1000000000845063470
Output
-1
58%
1684G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…