A Convex Game
1434E3500· legendary gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
1101 2 3 4 5 6 7 8 9 10
Output
YES
Sample 2of 3
Input
2101 2 3 4 5 6 7 8 9 10101 2 3 4 5 6 7 8 9 10
Output
NO
Sample 3of 3
Input
4714404 32906 41661 47694 51605 75933 80826525374 42550 60164 62649 8627327002 36731823305 45601 46404 47346 47675 58125 74092 87225
Output
NO
58%
1434E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…