Euclid's nightmare
1466F2100· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 21 11 22 2 1
Output
4 21 2
Sample 2of 3
Input
2 32 1 32 1 2
Output
4 21 2
Sample 3of 3
Input
3 52 1 21 31 4
Output
8 31 2 3
58%
1466F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…