結果

問題 No.1224 I hate Sqrt Inequality
ユーザー uni_pythonuni_python
提出日時 2020-09-12 18:08:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 427 bytes
コンパイル時間 567 ms
コンパイル使用メモリ 86,416 KB
実行使用メモリ 71,204 KB
最終ジャッジ日時 2023-09-02 14:48:45
合計ジャッジ時間 2,475 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,192 KB
testcase_01 AC 70 ms
71,196 KB
testcase_02 AC 70 ms
71,012 KB
testcase_03 AC 70 ms
71,144 KB
testcase_04 AC 70 ms
70,824 KB
testcase_05 AC 70 ms
71,204 KB
testcase_06 AC 72 ms
70,728 KB
testcase_07 AC 73 ms
71,008 KB
testcase_08 AC 72 ms
71,176 KB
testcase_09 AC 73 ms
71,140 KB
testcase_10 AC 69 ms
71,140 KB
testcase_11 AC 69 ms
70,944 KB
testcase_12 AC 73 ms
71,004 KB
testcase_13 AC 71 ms
71,144 KB
testcase_14 AC 73 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b=MI()
    from math import gcd
    
    g=gcd(a,b)
    a=a//g
    b=b//g
    
    while b%2==0:
        b=b//2
        
    while b%5==0:
        b=b//5
        
    if b==1:
        print("No")
    else:
        print("Yes")


main()
0