Problem2372--CF1705A-Mark the photographer

2372: CF1705A-Mark the photographer

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description


Sample Input Copy

3
3 6
1 3 9 10 12 16
3 1
2 5 2 2 2 5
1 2
8 6

Sample Output Copy

YES
NO
YES

HINT


Source/Category