結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
ygd.
|
| 提出日時 | 2020-10-17 15:14:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 58,320 KB |
| 最終ジャッジ日時 | 2024-07-21 02:50:06 |
| 合計ジャッジ時間 | 2,134 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 1 |
ソースコード
N = int(input())
MAX = pow(10,5)
for i in range(3,MAX):
nokori = N - i*(i-1)//2
if nokori%i == 0:
print("YES");exit()
print("NO")
ygd.