AtCoder Beginner Contest 463
16:9AI (CI翻译)
Problem Statement
题目描述
AI (CI翻译)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$。AI (CI翻译)
Constraints
约束条件
AI (CI翻译)$1 \leq X \leq 1000$$1 \leq Y \leq 1000$- All input values are integers.
$1 \leq X \leq 1000$$1 \leq Y \leq 1000$- 所有输入值均为整数。
Input
输入格式
AI (CI翻译)The input is given from Standard Input in the following format:
输入从标准输入按以下格式给出:AI (CI翻译)
X Y
X YAI (CI翻译)
Output
输出格式
AI (CI翻译)If the ratio of the width to the height is $16$ to $9$, output Yes; otherwise, output No.
如果宽高比为 $16:9$,输出 Yes;否则,输出 No。AI (CI翻译)
样例
Input #1
800 450
Output #1
Yes
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$.
Input #2
234 108
Output #2
No
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$.
Input #3
108 192
Output #3
No
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$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。