Red Light, Green Light (Hard version)
2118D22200· master4s512 MB⌨ stdin/stdout
#binary search#brute force#data structures#dfs and similar#dp#graphs#implementation#math#number theory
Examples
Sample 1of 1
Input
42 21 41 031 2 39 41 2 3 4 5 6 7 8 93 2 1 0 1 3 3 1 152 5 6 7 84 21 2 3 40 0 0 041 2 3 43 41 2 33 1 131 2 3
Output
YESNOYESYESYESYESNONOYESYESNONOYESNOYES
58%
2118D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…