Game With Triangles
2063D2000· candidate master2s256 MB⌨ stdin/stdout
#binary search#brute force#data structures#geometry#greedy#implementation#math#ternary search#two pointers
Examples
Sample 1of 1
Input
51 300 1 -12 40 100-100 -50 0 502 40 1000-100 -50 0 506 620 1 27 100 43 42100 84 1 24 22 778 2564040265 -509489796 469913620 198872582 -400714529 553177666 131159391 -20796763-1000000000 1000000000
Output
122150 20021000 200499 198 260 28322000000000 2027422256
58%
2063D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)