結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー Shirotsume
提出日時 2022-03-06 21:22:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 80,384 KB
最終ジャッジ日時 2024-07-21 07:24:52
合計ジャッジ時間 4,870 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal


n = int(input())

ans = 0

for i in range(n):
    x = Decimal(input())
    now = round(x * 10 ** 10) 
    ans += now

ans = str(ans)

n = len(ans)
ans = ans[:n - 10] + '.' + ans[n - 10:]

print(ans)
0