cf/mirror

In a Trap

CF
840E3200· legendary gm3s256 MB⌨ stdin/stdout
#trees

Examples

Sample 1of 2
Input
5 3
0 3 2 1 4
1 2
2 3
3 4
3 5
1 4
1 5
2 4
Output
3
4
3
Sample 2of 2
Input
5 4
1 2 3 4 5
1 2
2 3
3 4
4 5
1 5
2 5
1 4
3 3
Output
5
5
4
3
840E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…