atcoder#ABC296C. [ABC296C] Gap Existence
[ABC296C] Gap Existence
Score : points
Problem Statement
You are given a sequence of numbers: .
Determine whether there is a pair with such that .
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if there is a pair with such that , and No
otherwise.
6 5
3 1 4 1 5 9
Yes
We have .
6 -4
-2 -7 -1 -8 -2 -8
No
There is no pair such that .
2 0
141421356 17320508
Yes
We have .