結果

問題 No.1224 I hate Sqrt Inequality
ユーザー sangonana
提出日時 2021-04-09 13:17:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-24 20:32:37
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
a,b=map(int,input().split())
x=b//gcd(a,b)

while x%2==0:
	x//=2
while x%5==0:
	x//=5

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