結果
| 問題 | No.1256 連続整数列 |
| コンテスト | |
| ユーザー |
burita083
|
| 提出日時 | 2021-03-11 09:13:05 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 354,140 KB |
| 最終ジャッジ日時 | 2026-04-30 04:06:27 |
| 合計ジャッジ時間 | 4,437 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 37 |
ソースコード
A = int(input())
from collections import Counter
C = Counter([])
for i in range(1, int(A+1)):
sm = i*(i+1)//2
if C[sm-A] == 1:
print("YES")
exit()
C[sm] = 1
print("No")
burita083