cf/mirror

Iris and Game on the Tree

CF
2006A1700· expert2s256 MB⌨ stdin/stdout

Examples

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