結果

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

ソースコード

diff #

def func(n):
    if n%2!=0 and n%5!=0:return True
    while n%2==0 or n%5==0:
        if n%2==0:n//=2
        if n%5==0:n//=5
    for i in range(3,int(n**0.5),2):
        if n%i==0:return True
    return False

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