cf/mirror

Dasha and Puzzle

CF
761E2000· candidate master2s256 MB⌨ stdin/stdout

Examples

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