AT_abc463_a.16:9

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

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

题目描述

There is an image with a width of XX pixels and a height of YY pixels. Determine whether the ratio of the width to the height is 1616 to 99, that is, whether X:Y=16:9X:Y=16:9.

有一张图像,其宽度为 XX 像素,高度为 YY 像素。判断该图像的宽高比是否为 16:916:9,即是否满足 X:Y=16:9X:Y=16:9。

输入格式

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

XX YY

输入从标准输入给出,格式如下:

XX YY

输出格式

If the ratio of the width to the height is 1616 to 99, output Yes; otherwise, output No.

如果宽与高的比值为 1616 比 99,则输出 Yes;否则输出 No。

输入输出样例

  • 输入#1

    800 450

    输出#1

    Yes
  • 输入#2

    234 108

    输出#2

    No
  • 输入#3

    108 192

    输出#3

    No

说明/提示

Sample 1 Explanation:
For an image with a width of 800800 pixels and a height of 450450 pixels, the ratio of the width to the height is 1616 to 99.

Sample 2 Explanation:
For an image with a width of 234234 pixels and a height of 108108 pixels, the ratio of the width to the height is not 1616 to 99.

Sample 3 Explanation:
For an image with a width of 108108 pixels and a height of 192192 pixels, the ratio of the width to the height is not 1616 to 99.

Constraints

  • 1≤X≤10001 \leq X \leq 1000
  • 1≤Y≤10001 \leq Y \leq 1000
  • All input values are integers.

样例 1 解释:
对于一张宽度为 800800 像素、高度为 450450 像素的图像,其宽高比为 16:916:9。

样例 2 解释:
对于一张宽度为 234234 像素、高度为 108108 像素的图像,其宽高比不是 16:916:9。

样例 3 解释:
对于一张宽度为 108108 像素、高度为 192192 像素的图像,其宽高比不是 16:916:9。

约束条件

  • 1≤X≤10001 \leq X \leq 1000
  • 1≤Y≤10001 \leq Y \leq 1000
  • 所有输入值均为整数。

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

首页