AT_abc463_a.16:9
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
There is an image with a width of X pixels and a height of Y pixels. Determine whether the ratio of the width to the height is 16 to 9, that is, whether X:Y=16:9.
有一张图像,其宽度为 X 像素,高度为 Y 像素。判断该图像的宽高比是否为 16:9,即是否满足 X:Y=16:9。
输入格式
The input is given from Standard Input in the following format:
X Y
输入从标准输入给出,格式如下:
X Y
输出格式
If the ratio of the width to the height is 16 to 9, output Yes; otherwise, output No.
如果宽与高的比值为 16 比 9,则输出 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 800 pixels and a height of 450 pixels, the ratio of the width to the height is 16 to 9.
Sample 2 Explanation:
For an image with a width of 234 pixels and a height of 108 pixels, the ratio of the width to the height is not 16 to 9.
Sample 3 Explanation:
For an image with a width of 108 pixels and a height of 192 pixels, the ratio of the width to the height is not 16 to 9.
Constraints
- 1≤X≤1000
- 1≤Y≤1000
- All input values are integers.
样例 1 解释:
对于一张宽度为 800 像素、高度为 450 像素的图像,其宽高比为 16:9。
样例 2 解释:
对于一张宽度为 234 像素、高度为 108 像素的图像,其宽高比不是 16:9。
样例 3 解释:
对于一张宽度为 108 像素、高度为 192 像素的图像,其宽高比不是 16:9。
约束条件
- 1≤X≤1000
- 1≤Y≤1000
- 所有输入值均为整数。
输入解题思路,AI测评打分。不知道怎么写?