結果

問題 No.8072 Sum of sqrt(x)
ユーザー toyuzuko
提出日時 2020-10-08 23:56:29
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 257 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 240 ms
コンパイル使用メモリ 95,980 KB
実行使用メモリ 221,696 KB
最終ジャッジ日時 2026-08-19 15:28:16
合計ジャッジ時間 6,125 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_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