結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
chocorusk
|
| 提出日時 | 2020-09-12 21:55:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 1,237 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 152,704 KB |
| 最終ジャッジ日時 | 2026-06-06 03:41:54 |
| 合計ジャッジ時間 | 12,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 22 |
ソースコード
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]
print('\n'.join(map(str, ans)))
chocorusk