cf/mirror

Controllers

CF
1776L1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
8
+-+---+-
5
2 1
10 3
7 9
10 10
5 3
Output
YES
NO
NO
NO
YES
Sample 2of 3
Input
6
+-++--
2
9 7
1 1
Output
YES
YES
Sample 3of 3
Input
20
+-----+--+--------+-
2
1000000000 99999997
250000000 1000000000
Output
NO
YES
1776L.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)