Weakened Common Divisor
1025B1600· expert1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
317 1815 2412 15
Output
6
Sample 2of 3
Input
210 167 17
Output
-1
Sample 3of 3
Input
590 10845 10575 40165 17533 30
Output
5
58%
1025B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)