cf/mirror

Game with Multiset

CF
1913C1300· pupil1.5s256 MB⌨ stdin/stdout

Examples

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