无码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的評論 (共 條)

分享到微博請遵守國家法律
九江县| 东丽区| 四会市| 丹东市| 乌海市| 德庆县| 定兴县| 松溪县| 乡宁县| 道孚县| 合川市| 宁乡县| 锦屏县| 西城区| 工布江达县| 肇州县| 桃园县| 寿宁县| 顺平县| 固安县| 塘沽区| 西畴县| 浪卡子县| 阿鲁科尔沁旗| 筠连县| 礼泉县| 盐源县| 扶绥县| 郴州市| 永修县| 奉新县| 阳信县| 嵩明县| 建宁县| 霸州市| 琼中| 大足县| 通海县| 祁东县| 祁门县| 北宁市|