結果
| 問題 | No.1256 連続整数列 |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:04:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| + 323µs | |
| コード長 | 343 bytes |
| 記録 | |
| コンパイル時間 | 393 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 83,424 KB |
| 最終ジャッジ日時 | 2026-07-12 13:36:20 |
| 合計ジャッジ時間 | 4,440 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
A = int(input())
B = 2 * A
divisors = set()
for i in range(1, int(B**0.5) + 1):
if B % i == 0:
divisors.add(i)
divisors.add(B // i)
found = False
for k in divisors:
if k >= 3:
quotient = B // k
if (quotient - k + 1) % 2 == 0:
found = True
break
print("YES" if found else "NO")
lam6er