結果

問題 No.1256 連続整数列
ユーザー zyxwzyxw
提出日時 2021-01-13 10:44:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-22 02:51:36
合計ジャッジ時間 1,759 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

def func(N):
    li=[]
    num=N
    for i in range(2,int(N**(1/2))+2):
        if num%i==0:
            si=0
            while num%i==0:
                num=num//i
                si+=1
            li.append([i,si])
    if num!=1:
        li.append([num,1])
    return li
A=int(input())
B=0
B+=A
while B%2==0:
    B//=2
if B==1:
    print("NO")
else:
    data=func(B)
    C=data[0][0]
    if A//C-(C-1)//2>=0:
        print("YES")
    else:
        print("NO")
0