結果

問題 No.1224 I hate Sqrt Inequality
ユーザー dangodango
提出日時 2023-06-12 21:36:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 931 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,832 KB
最終ジャッジ日時 2023-09-02 15:01:44
合計ジャッジ時間 3,152 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,764 KB
testcase_01 AC 77 ms
71,648 KB
testcase_02 AC 74 ms
71,584 KB
testcase_03 AC 80 ms
71,796 KB
testcase_04 AC 81 ms
71,832 KB
testcase_05 AC 80 ms
71,564 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 80 ms
71,768 KB
testcase_09 AC 78 ms
71,764 KB
testcase_10 AC 77 ms
71,708 KB
testcase_11 AC 75 ms
71,420 KB
testcase_12 AC 76 ms
71,780 KB
testcase_13 AC 73 ms
71,508 KB
testcase_14 AC 77 ms
71,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
A, B = map(int, input().split())
A, B = A // math.gcd(A, B), B // math.gcd(A, B)
if math.log(B, 2).is_integer() or math.log(B, 5).is_integer() or math.log(B, 10).is_integer():
  print("No")
else:
  print("Yes")
0