結果

問題 No.1224 I hate Sqrt Inequality
ユーザー rusa_dkrusa_dk
提出日時 2020-09-11 21:44:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 1,560 ms
コンパイル使用メモリ 86,780 KB
実行使用メモリ 71,060 KB
最終ジャッジ日時 2023-09-02 14:43:23
合計ジャッジ時間 2,345 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,908 KB
testcase_01 AC 74 ms
70,860 KB
testcase_02 AC 74 ms
70,900 KB
testcase_03 AC 73 ms
71,024 KB
testcase_04 AC 71 ms
71,000 KB
testcase_05 AC 73 ms
70,960 KB
testcase_06 AC 74 ms
71,000 KB
testcase_07 AC 74 ms
70,992 KB
testcase_08 AC 74 ms
70,900 KB
testcase_09 AC 75 ms
71,016 KB
testcase_10 AC 76 ms
70,976 KB
testcase_11 AC 75 ms
71,060 KB
testcase_12 AC 75 ms
71,040 KB
testcase_13 AC 73 ms
71,052 KB
testcase_14 AC 74 ms
70,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(a,b):
  while b:
    a,b=b,a%b
  return a

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