結果

問題 No.3072 Speedrun Query
ユーザー gew1fw
提出日時 2025-06-12 18:09:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 413 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 80,504 KB
最終ジャッジ日時 2025-06-12 18:11:10
合計ジャッジ時間 4,079 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from decimal import Decimal, getcontext

getcontext().prec = 30  # Set a high precision to handle all cases accurately

n = int(sys.stdin.readline())
sum_total = Decimal(0)
for _ in range(n):
    x = sys.stdin.readline().strip()
    xi = Decimal(x)
    sqrt_xi = xi.sqrt()
    sum_total += sqrt_xi
    # Format to 17 decimal places to meet the required precision
    print("{0:.17f}".format(sum_total))
0