Strict Triangle
2128F3200· legendary gm4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
74 4 21 2 10 202 3 10 301 3 49 904 3 1 10004 4 21 2 10 202 3 10 301 3 50 904 3 1 10005 7 31 2 1 1000001 4 10 1002 3 1 1000003 4 1 1000002 5 2 1000003 5 1 14 5 1 315 7 31 2 1 1000001 4 100000 1000002 3 1 13 4 1 1000002 5 2 1000003 5 1 14 5 1 315 5 31 2 1 422 4 1 424 5 1 421 3 1 13 5 1 425 5 31 2 1 422 4 1 424 5 1 421 3 1 13 5 1 15 5 31 2 1 422 4 1 424 5 1 421 3 1 13 5 2 2
Output
YESNOYESYESYESNONO
58%
2128F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…