結果
| 問題 |
No.1256 連続整数列
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:04:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 82,592 KB |
| 実行使用メモリ | 59,328 KB |
| 最終ジャッジ日時 | 2025-06-20 11:31:03 |
| 合計ジャッジ時間 | 2,727 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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