cf/mirror

Recollect Numbers

CF
2201B1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
2 3
3 4
3 2
3 5
6 10
6 67
Output
YES
2 1 2 1
YES
1 3 2 2 1 3
NO
YES
1 2 3 1 2 3
YES
2 1 3 4 5 4 1 2 6 5 6 3
NO
2201B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)