cf/mirror

Kevin and Bipartite Graph

CF
2048E2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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