AT_abc467_a.Obesity
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
The value calculated by the following formula is called BMI[kg/m2]. (÷ denotes division.)
- Weight[kg]÷Height[m]÷Height[m]
In Japan, a person whose BMI is 25kg/m2 or more is considered obese.
Determine whether a person with height H[cm] and weight W[kg] is considered obese in Japan.
以下公式计算出的值称为 BMI[kg/m2]。(÷ 表示除法。)
- 体重[kg]÷身高[m]÷身高[m]
在日本,BMI 达到 25kg/m2 或以上者被视为肥胖。
请判断身高为 H[cm]、体重为 W[kg] 的人是否在日本被认定为肥胖。
输入格式
The input is given from Standard Input in the following format:
H W
输入从标准输入中按以下格式给出:
H W
输出格式
Output Yes on one line if a person with height H[cm] and weight W[kg] is considered obese in Japan, and No otherwise.
如果身高为 H[cm]、体重为 W[kg] 的人被日本认定为肥胖,则在一行中输出 Yes,否则输出 No。
输入输出样例
输入#1
180 60
输出#1
No
输入#2
182 188
输出#2
Yes
输入#3
180 81
输出#3
Yes
说明/提示
Sample 1 Explanation:
Since the height is 180cm=1.8m, the BMI is 60kg÷1.8m÷1.8m=18.5…kg/m2, so this person is not considered obese.
Constraints
- 1≤H≤300
- 1≤W≤300
- All input values are integers.
样例 1 解释:
由于身高为 180cm=1.8m,因此 BMI=60kg÷1.8m÷1.8m=18.5…kg/m2,所以此人不被视为肥胖。
限制条件
- 1≤H≤300
- 1≤W≤300
- 所有输入值均为整数。
输入解题思路,AI测评打分。不知道怎么写?