結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
ygd.
|
| 提出日時 | 2020-10-16 21:26:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 59,424 KB |
| 最終ジャッジ日時 | 2024-07-21 02:43:41 |
| 合計ジャッジ時間 | 1,989 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.