結果

問題 No.3072 Speedrun Query
ユーザー gew1fw
提出日時 2025-06-12 13:00:30
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 413 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 81,008 KB
最終ジャッジ日時 2025-06-12 13:06:46
合計ジャッジ時間 4,888 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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