No.1224 I hate Sqrt Inequality
レベル :
/ AI推定難易度 : 275
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 317
作問者 :
tyawanmusi
/ テスター :
null
タグ : / 解いたユーザー数 317
作問者 :
null
問題文最終更新日: 2020-08-29 15:17:15
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 265
(順位表)
の他の問題:
Original Inspiration
Sqrt Inequality
It is an interesting problem.
Problem Statement
Is $a/b$ an infinite decimal?
Constraints
- All inputs are integers.
- $1 \le a,b \le 10^{18}$
Input
$a$ $b$
$a,b$ are given on $1$ line, separated by a space.
Output
Print Yes if $a/b$ is an infinite decimal, and No otherwise.
Print a newline at the end.
Sample
Sample 1
Input
2 9
Output
Yes
Since $2/9 = 0.222...$, the answer is Yes.
Sample 2
Input
1 4
Output
No
Since $1/4 = 0.25$, the answer is No.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。