結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー ShirotsumeShirotsume
提出日時 2022-03-06 21:28:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 191 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 90,792 KB
最終ジャッジ日時 2023-09-29 23:02:03
合計ジャッジ時間 6,886 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 177 ms
88,644 KB
testcase_01 AC 177 ms
88,944 KB
testcase_02 AC 178 ms
88,732 KB
testcase_03 AC 186 ms
88,932 KB
testcase_04 AC 184 ms
88,912 KB
testcase_05 AC 179 ms
88,996 KB
testcase_06 AC 187 ms
88,956 KB
testcase_07 AC 180 ms
88,880 KB
testcase_08 AC 185 ms
88,980 KB
testcase_09 AC 189 ms
90,792 KB
testcase_10 AC 186 ms
88,972 KB
testcase_11 AC 176 ms
88,780 KB
testcase_12 AC 182 ms
88,776 KB
testcase_13 AC 178 ms
88,776 KB
testcase_14 AC 189 ms
88,728 KB
testcase_15 AC 191 ms
88,772 KB
testcase_16 AC 186 ms
88,872 KB
testcase_17 AC 181 ms
88,764 KB
testcase_18 AC 189 ms
88,776 KB
testcase_19 AC 189 ms
88,748 KB
testcase_20 AC 178 ms
88,932 KB
testcase_21 AC 179 ms
88,764 KB
testcase_22 AC 182 ms
88,744 KB
testcase_23 AC 184 ms
88,780 KB
testcase_24 AC 183 ms
88,728 KB
testcase_25 AC 187 ms
88,932 KB
testcase_26 AC 177 ms
88,732 KB
testcase_27 AC 177 ms
88,732 KB
testcase_28 AC 177 ms
88,736 KB
testcase_29 AC 178 ms
88,688 KB
権限があれば一括ダウンロードができます

ソースコード

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