結果

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

ソースコード

diff #

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

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