結果

問題 No.1256 連続整数列
ユーザー 👑 timitimi
提出日時 2020-10-17 00:58:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 8,268 KB
最終ジャッジ日時 2023-09-28 07:09:00
合計ジャッジ時間 1,746 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
8,220 KB
testcase_02 WA -
testcase_03 AC 16 ms
8,200 KB
testcase_04 WA -
testcase_05 AC 15 ms
8,268 KB
testcase_06 AC 15 ms
8,256 KB
testcase_07 AC 15 ms
8,104 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
8,236 KB
testcase_12 AC 16 ms
8,264 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 15 ms
8,160 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 16 ms
8,204 KB
testcase_23 AC 15 ms
8,240 KB
testcase_24 AC 15 ms
8,224 KB
testcase_25 AC 16 ms
8,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N==1:
    print('NO')
elif N%2==1:
    print('YES')
else:
    for i in range(10**5):
        d=N-(i+2)
        if d%(2*(i+2))==0:
            print('YES')
            exit()
print('NO')
0