結果

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

ソースコード

diff #

from decimal import Decimal


n = int(input())

ans = Decimal(0.0)

for i in range(n):
    x = Decimal(input()) 
    ans += x

ans = str(ans)
if '.' not in ans:
    ans += '.' + '0' * 10
else:
    now = ans.index('.')
    ans += '0' * (10 - (len(ans) - now - 1))
print(ans)
0