結果

問題 No.1224 I hate Sqrt Inequality
ユーザー KudeKude
提出日時 2020-09-11 21:49:27
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 137 bytes
コンパイル時間 2,017 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 71,708 KB
最終ジャッジ日時 2023-08-30 19:26:31
合計ジャッジ時間 3,087 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,408 KB
testcase_01 AC 70 ms
71,540 KB
testcase_02 AC 70 ms
71,232 KB
testcase_03 AC 69 ms
71,544 KB
testcase_04 AC 70 ms
71,284 KB
testcase_05 AC 71 ms
71,116 KB
testcase_06 AC 70 ms
71,228 KB
testcase_07 AC 71 ms
71,364 KB
testcase_08 AC 72 ms
71,424 KB
testcase_09 AC 71 ms
71,224 KB
testcase_10 AC 71 ms
71,112 KB
testcase_11 AC 69 ms
71,252 KB
testcase_12 WA -
testcase_13 AC 71 ms
71,432 KB
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
a, b = map(int, input().split())
g = gcd(a, b)
b //= g
g = gcd(b, 10 ** 18)
b //= g
print('No' if b == 1 else 'Yes')
0