cf/mirror

Turn the Rectangles

CF
1008B1000· newbie2s256 MB⌨ stdin/stdout

Examples

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