cf/mirror

Hidden Bipartite Graph

CF
1033E2800· international gm4s256 MB⇄ interactive

Examples

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