結果

問題 No.1224 I hate Sqrt Inequality
ユーザー rythem00359rythem00359
提出日時 2020-09-17 16:42:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-22 06:36:00
合計ジャッジ時間 1,041 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

def func(m,n):
    while n%2==0 or n%5==0:
        if n%2==0:n//=2
        if n%5==0:n//=5
    if m%n==0:return False
    else:return True

a,b=map(int,input().split())
print('Yes' if func(a,b) else 'No')
0