#abc265d. D - Iroha and Haiku (New ABC Edition)
D - Iroha and Haiku (New ABC Edition)
Score : points
问题陈述
存在一个长度为 的序列 。
确定是否存在一个整数元组 满足以下所有条件:
以上为通义千问 qwen-max 翻译,仅供参考。
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
.
Sample Input 1
10 5 7 5
1 3 2 2 2 3 1 4 3 2
Sample Output 1
Yes
satisfies the conditions.
Sample Input 2
9 100 101 100
31 41 59 26 53 58 97 93 23
Sample Output 2
No
Sample Input 3
7 1 1 1
1 1 1 1 1 1 1
Sample Output 3
Yes
update @ 2024/3/10 11:12:21