結果

問題 No.1224 I hate Sqrt Inequality
ユーザー miya145592miya145592
提出日時 2023-05-15 03:34:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 71,632 KB
最終ジャッジ日時 2023-08-20 10:56:47
合計ジャッジ時間 2,506 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,536 KB
testcase_01 AC 76 ms
71,628 KB
testcase_02 AC 84 ms
71,476 KB
testcase_03 AC 80 ms
71,240 KB
testcase_04 AC 79 ms
71,632 KB
testcase_05 AC 78 ms
71,208 KB
testcase_06 AC 79 ms
71,340 KB
testcase_07 AC 80 ms
71,344 KB
testcase_08 AC 78 ms
71,268 KB
testcase_09 AC 79 ms
71,628 KB
testcase_10 AC 78 ms
71,552 KB
testcase_11 AC 78 ms
71,540 KB
testcase_12 AC 78 ms
71,624 KB
testcase_13 AC 79 ms
71,560 KB
testcase_14 AC 80 ms
71,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

a, b = map(int, input().split())
g = math.gcd(a, b)
a//=g
b//=g

while b%2==0:
    b//=2

while b%5==0:
    b//=5

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