Two Divisors
1366D2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
102 3 4 5 6 7 8 9 10 24
Output
-1 -1 -1 -1 3 -1 -1 -1 2 2-1 -1 -1 -1 2 -1 -1 -1 5 3
58%
1366D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
102 3 4 5 6 7 8 9 10 24
-1 -1 -1 -1 3 -1 -1 -1 2 2-1 -1 -1 -1 2 -1 -1 -1 5 3