cf/mirror

Complete the Projects (easy version)

CF
1203F12100· master2s256 MB⌨ stdin/stdout
#greedy

Examples

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