cf/mirror

Nearest Point Function

CF
1533B1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
2
1 3
2
1 100
3
1 50 101
2
1 1000000000
2
1 999999999
6
1 2 5 7 9 11
6
1 2 5 8 9 12
Output
YES
NO
NO
NO
YES
YES
NO
1533B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)