The Door Problem
776D2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 31 0 12 1 32 1 22 2 3
Output
NO
Sample 2of 3
Input
3 31 0 13 1 2 31 22 1 3
Output
YES
Sample 3of 3
Input
3 31 0 13 1 2 32 1 21 3
Output
NO
58%
776D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…