无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

AtCoder: New Scheme

2023-07-02 09:24 作者:您是打尖兒還是住店呢  | 我要投稿

Problem Statement

Given eight integers

S1,S2,…, and S8, print Yes if they satisfy all of the following three conditions, and No otherwise.

The sequence (S1,S2,…,S8) is monotonically non-decreasing. In other words,

S1≤S2≤?≤S8.S1,S2,…, and S8 are all between 100 and 675, inclusive.

S1,S2,…, and S8 are all multiples of 25.

Constraints 0≤Si ≤1000

All input values are integers.

Input

The input is given from Standard Input in the following format:

S1 S2 … S8

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

S4>S5.


Sample Input 3

0 23 24 145 301 413 631 632

Sample Output 3

No

They violate the second and third conditions.

-----------------------------------------------------

Easy 題目,判斷所有所有是否滿足三個(gè)條件即可,只是3個(gè)條件分開寫一個(gè)函數(shù)即可;

下面是代碼:


AtCoder: New Scheme的評論 (共 條)

分享到微博請遵守國家法律
平定县| 红桥区| 上饶县| 平顺县| 阿合奇县| 油尖旺区| 金塔县| 拉萨市| 夹江县| 阳新县| 大庆市| 深州市| 阳谷县| 高安市| 徐水县| 西乌珠穆沁旗| 安平县| 宿松县| 原平市| 将乐县| 赣榆县| 和静县| 四会市| 北票市| 辉南县| 财经| 紫云| 德州市| 沧州市| 内丘县| 都兰县| 松阳县| 格尔木市| 静安区| 沐川县| 腾冲县| 六枝特区| 吉林省| 呼图壁县| 称多县| 碌曲县|