結果

問題 No.81 すべて足すだけの簡単なお仕事です。
コンテスト
ユーザー lam6er
提出日時 2025-03-31 17:22:46
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 169 ms / 5,000 ms
コード長 342 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 230 ms
コンパイル使用メモリ 96,480 KB
実行使用メモリ 90,972 KB
最終ジャッジ日時 2026-07-08 04:03:33
合計ジャッジ時間 7,025 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from decimal import Decimal, getcontext
import sys

getcontext().prec = 1000  # Ensure high precision for accurate summation

n = int(sys.stdin.readline())
total = Decimal(0)
for _ in range(n):
    line = sys.stdin.readline().strip()
    total += Decimal(line)

# Format the result to exactly 10 decimal places
print("{0:.10f}".format(total))
0