結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー lam6er
提出日時 2025-03-31 17:22:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 82,956 KB
実行使用メモリ 80,800 KB
最終ジャッジ日時 2025-03-31 17:23:39
合計ジャッジ時間 5,026 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

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