結果
| 問題 | No.1271 初めての級数 |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-10-30 22:19:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 62,108 KB |
| 最終ジャッジ日時 | 2026-04-03 06:46:40 |
| 合計ジャッジ時間 | 12,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 TLE * 5 -- * 2 |
ソースコード
from heapq import heappop, heappush
k = int(input())
t = []
for n in range(1, 1000000):
heappush(t, 1 / (n * (n + k)))
while len(t) != 1:
a = heappop(t)
b = heappop(t)
heappush(t, a + b)
print(t[0])
c-yan