結果

問題 No.1224 I hate Sqrt Inequality
ユーザー oevl
提出日時 2020-10-27 21:25:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 619 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-21 22:04:29
合計ジャッジ時間 1,454 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

a, b = map(int, input().split())

g = math.gcd(a, b)
a //= g
b //= g

for i in [2, 5]:
    while b % i == 0:
        b //= i

print("Yes") if b != 1 else print("No")
0