cf/mirror

Triangle Formation

CF
1991F2200· master5s256 MB⌨ stdin/stdout

Examples

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