結果

問題 No.1224 I hate Sqrt Inequality
ユーザー zyxw
提出日時 2021-02-02 21:24:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-06-29 23:54:31
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b=map(int,input().split())
B=b//math.gcd(a,b)
while B%2==0:
    B//=2
while B%5==0:
    B//=5
if B!=1:
    print("Yes")
else:
    print("No")
0