Remove the Grail Tree
2193H2400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
531 2 41 22 343 4 2 11 22 33 469 6 5 1 7 41 22 32 43 54 652 1 1 1 22 13 22 45 451 5 3 7 91 22 33 44 5
Output
NOYES2 3 1 4NOYES1 5 2 3 4YES2 4 1 5 3
58%
2193H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…