cf/mirror

Blocking Chips

CF
1795F2400· grandmaster3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5
1 2
2 3
3 4
4 5
1
3
5
1 2
2 3
3 4
4 5
2
1 2
5
1 2
2 3
3 4
4 5
2
2 1
6
1 2
1 3
2 4
2 5
3 6
3
1 4 6
1
1
1
Output
2
0
1
2
0
1795F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…