結果

問題 No.8072 Sum of sqrt(x)
ユーザー chocorusk
提出日時 2020-09-12 21:56:29
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 352 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 903 ms
コンパイル使用メモリ 84,760 KB
実行使用メモリ 164,352 KB
最終ジャッジ日時 2026-06-06 03:43:09
合計ジャッジ時間 12,430 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 4 TLE * 1 -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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=50
import itertools
ans=itertools.accumulate([Decimal(int(readline())).sqrt() for _ in range(n)])
ans=[x.quantize(Decimal('1e-18')) for x in ans]
exit()
print('\n'.join(map(str, ans)))
0