cf/mirror

DFS Trees

CF
1707C2400· grandmaster1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5 5
1 2
3 5
1 3
3 2
4 2
Output
01111
Sample 2of 2
Input
10 11
1 2
2 5
3 4
4 2
8 1
4 5
10 5
9 5
8 2
5 7
4 6
Output
0011111011
1707C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…