結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2020-10-17 01:01:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-06-20 10:43:56 |
合計ジャッジ時間 | 2,419 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 40 |
ソースコード
N=int(input()) if N==1: print('NO') exit() elif N%2==1: print('YES') exit() else: for i in range(10**5): d=N-(i+2) if d%(2*(i+2))==0: print('YES') exit() print('NO')