
ProblemStatementGiveneightintegersS1,S2,…,andS8,printYesiftheysat
哔哩哔哩 2023-07-02 09:19:45
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≤⋯≤,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 题目,判断所有所有是否满足三个条件即可,只是3个条件分开写一个函数即可;
下面是代码:
ProblemStatementGiveneightintegersS1,S2,…,andS8,printYesiftheysat
8月12日晚间,*ST吉药(吉药控股)于深圳证券交易所发布《关于原董事长
7月2日电,俄罗斯媒体当地时间7月1日报道,俄罗斯国际航空公司当天宣布
1、Vista、WinVista、WinVista、Win。本文关于qq驿站的基本详情介绍就
直播吧7月1日讯尤文在今日官宣签下里尔多面手蒂莫西-维阿,后者也晒出
1、定位面是2000年公布的机械工程名词。2、。文章到此就分享结束,希望
《人力资源服务机构管理规定》8月1日起施行
夏季已经来了,这个季节的天气就像小孩的脾气一样说变就变,哪天要是忘
央视网消息(新闻联播):连日来,全国多地出现持续高温天气,各地采取
盛夏时节,辽宁省鞍山市动物园采用多种“妙招”给动物们防暑降温。7月1
对于忸怩是什么意思这个问题感兴趣的朋友应该很多,这个也是目前大家比
1、一般来说,单纯疱疹病毒感染人体后潜伏在神经节内,处于休眠状态。
昨日,A股“最爱炒股的酒企”兰州黄河披露了2022年半年度业绩。报告期
南方财经6月30日电,据中国《金融时报》微信公众号消息,近期,人民币
中组部最新数据显示,截至2022年底,中国共产党党员人数已达9804 1万名