結果

問題 No.8072 Sum of sqrt(x)
ユーザー toyuzuko
提出日時 2020-10-08 23:56:29
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 257 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 458 ms
コンパイル使用メモリ 84,836 KB
実行使用メモリ 297,748 KB
最終ジャッジ日時 2026-04-02 21:26:13
合計ジャッジ時間 11,371 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 TLE * 1 -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

from decimal import Decimal, getcontext
getcontext().prec = 18

N = int(input())
s = Decimal(0)
res = []

for _ in range(N):
    x = Decimal(input())
    s += x.sqrt()
    res.append(s)

print('\n'.join(map(str, res)))
0