AT_abc467_a.Obesity

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

The value calculated by the following formula is called BMI[kg/m2]\mathrm{BMI}[\mathrm{kg}/\mathrm{m}^2]. (÷\div denotes division.)

  • Weight[kg]÷Height[m]÷Height[m]\text{Weight}[\mathrm{kg}] \div \text{Height}[\mathrm{m}] \div \text{Height}[\mathrm{m}]

In Japan, a person whose BMI\mathrm{BMI} is 25  kg/m225 \; \mathrm{kg}/\mathrm{m}^2 or more is considered obese.
Determine whether a person with height H[cm]H[\mathrm{cm}] and weight W[kg]W[\mathrm{kg}] is considered obese in Japan.

以下公式计算出的值称为 BMI[kg/m2]\mathrm{BMI}[\mathrm{kg}/\mathrm{m}^2]。(÷\div 表示除法。)

  • 体重[kg]÷身高[m]÷身高[m]\text{体重}[\mathrm{kg}] \div \text{身高}[\mathrm{m}] \div \text{身高}[\mathrm{m}]

在日本,BMI\mathrm{BMI} 达到 25  kg/m225 \; \mathrm{kg}/\mathrm{m}^2 或以上者被视为肥胖。
请判断身高为 H[cm]H[\mathrm{cm}]、体重为 W[kg]W[\mathrm{kg}] 的人是否在日本被认定为肥胖。

输入格式

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

HH WW

输入从标准输入中按以下格式给出:

HH WW

输出格式

Output Yes on one line if a person with height H[cm]H[\mathrm{cm}] and weight W[kg]W[\mathrm{kg}] is considered obese in Japan, and No otherwise.

如果身高为 H[cm]H[\mathrm{cm}]、体重为 W[kg]W[\mathrm{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 180  cm=1.8  m180 \; \mathrm{cm}=1.8 \; \mathrm{m}, the BMI\mathrm{BMI} is 60  kg÷1.8  m÷1.8  m=18.5…  kg/m260 \; \mathrm{kg} \div 1.8 \; \mathrm{m} \div 1.8 \; \mathrm{m}=18.5\dots \; \mathrm{kg}/\mathrm{m}^2, so this person is not considered obese.

Constraints

  • 1≤H≤3001 \leq H \leq 300
  • 1≤W≤3001 \leq W \leq 300
  • All input values are integers.

样例 1 解释:
由于身高为 180  cm=1.8  m180 \; \mathrm{cm}=1.8 \; \mathrm{m},因此 BMI=60  kg÷1.8  m÷1.8  m=18.5…  kg/m2\mathrm{BMI} = 60 \; \mathrm{kg} \div 1.8 \; \mathrm{m} \div 1.8 \; \mathrm{m}=18.5\dots \; \mathrm{kg}/\mathrm{m}^2,所以此人不被视为肥胖。

限制条件

  • 1≤H≤3001 \leq H \leq 300
  • 1≤W≤3001 \leq W \leq 300
  • 所有输入值均为整数。

输入解题思路,AI测评打分。不知道怎么写?

首页