Polygonal Segments
1990F2800· international gm8s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
25 63 1 2 2 81 1 31 1 41 1 52 1 51 1 41 1 54 10500000000000 500000000000 1000000000000 5000000000001 1 31 2 41 1 42 1 4999999999992 3 9999999999991 1 31 2 41 1 42 3 10000000000001 1 3
Output
-14435-1-14-134-1
58%
1990F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)