atcoder#ABC265D. [ABC265D] Iroha and Haiku (New ABC Edition)
[ABC265D] Iroha and Haiku (New ABC Edition)
Score : points
Problem Statement
There is a sequence of length . Determine if there exists a tuple of integers that satisfies all of the following conditions:
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If there exists a tuple that satisfies the conditions, print Yes
; otherwise, print No
.
10 5 7 5
1 3 2 2 2 3 1 4 3 2
Yes
satisfies the conditions.
9 100 101 100
31 41 59 26 53 58 97 93 23
No
7 1 1 1
1 1 1 1 1 1 1
Yes