結果

問題 No.1256 連続整数列
ユーザー komkompi
提出日時 2020-10-17 19:40:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-21 03:01:36
合計ジャッジ時間 1,989 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
A=int(input())
roop=int(A**0.5)+1

judge=A%2

for i in range(3,roop):
    temp=A/i
    if i%2==0:
        if temp%1==0.5:
            #print(i)
            print("YES")
            exit()
    else:
        if temp%1==0:
            #print(i)
            print("YES")
            exit()
        
print("NO")
0