cf/mirror

Building Skyscrapers

CF
1192A3.5s1024 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
2
0 0
0 1
0 2
Output
YES
1
2
3
Sample 2of 3
Input
3
1
0 0
1 1
2 2
Output
YES
2
3
1
Sample 3of 3
Input
2
1
0 0
0 2
Output
NO
1192A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)