cf/mirror

Indivisible

CF
2196F3300· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
12 7
12 1
90000 12
30 434
30 435
Output
Yes
1 2
2 3
3 4
4 5
5 1
1 3
2 4
No
Yes
1 4
1 5
1 6
2 4
2 5
2 6
3 4
3 5
3 6
4 5
4 6
5 6
No
No
2196F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…