結果

問題 No.8072 Sum of sqrt(x)
ユーザー chocorusk
提出日時 2020-09-12 21:57:20
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 345 bytes
コンパイル時間 780 ms
コンパイル使用メモリ 82,812 KB
実行使用メモリ 361,024 KB
最終ジャッジ日時 2025-01-02 14:37:48
合計ジャッジ時間 79,301 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 TLE * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read=sys.stdin.buffer.read
readline=sys.stdin.buffer.readline
readlines=sys.stdin.buffer.readlines
n=int(readline())
from decimal import *
getcontext().prec=30
import itertools
ans=itertools.accumulate([Decimal(int(readline())).sqrt() for _ in range(n)])
ans=[x.quantize(Decimal('1e-18')) for x in ans]
print('\n'.join(map(str, ans)))
0