#abc308a. A - New Scheme
A - New Scheme
Score : points
问题描述
给定八个整数 ,如果它们满足以下三个条件,则输出 Yes,否则输出 No。
- 序列 是单调非减的。换句话说,。
 - 均在 和 (包含)之间。
 - 都是 的倍数。
 
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Given eight integers , and , print Yes if they satisfy all of the following three conditions, and No otherwise.
- The sequence is monotonically non-decreasing. In other words, .
 - , and are all between and , inclusive.
 - , and are all multiples of .
 
Constraints
- All input values are integers.
 
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
125 175 250 300 400 525 600 650
Sample Output 1
Yes
They satisfy all of the three conditions.
Sample Input 2
100 250 300 400 325 575 625 675
Sample Output 2
No
They violate the first condition because .
Sample Input 3
0 23 24 145 301 413 631 632
Sample Output 3
No
They violate the second and third conditions.
update @ 2024/3/10 08:43:25