結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kurenai3110kurenai3110
提出日時 2017-02-15 23:54:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,764 KB
実行使用メモリ 9,080 KB
最終ジャッジ日時 2023-09-29 22:38:44
合計ジャッジ時間 1,884 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
9,068 KB
testcase_01 AC 21 ms
8,988 KB
testcase_02 AC 22 ms
9,028 KB
testcase_03 AC 19 ms
8,908 KB
testcase_04 AC 20 ms
9,024 KB
testcase_05 AC 20 ms
8,944 KB
testcase_06 AC 21 ms
8,988 KB
testcase_07 AC 20 ms
8,896 KB
testcase_08 AC 20 ms
9,076 KB
testcase_09 AC 20 ms
9,068 KB
testcase_10 AC 20 ms
8,920 KB
testcase_11 AC 21 ms
8,920 KB
testcase_12 AC 20 ms
8,876 KB
testcase_13 AC 20 ms
9,080 KB
testcase_14 AC 20 ms
8,936 KB
testcase_15 AC 20 ms
8,936 KB
testcase_16 AC 20 ms
8,824 KB
testcase_17 AC 20 ms
8,940 KB
testcase_18 AC 20 ms
9,052 KB
testcase_19 AC 20 ms
8,984 KB
testcase_20 AC 20 ms
8,940 KB
testcase_21 AC 20 ms
9,016 KB
testcase_22 AC 20 ms
8,944 KB
testcase_23 AC 20 ms
9,052 KB
testcase_24 AC 20 ms
8,904 KB
testcase_25 AC 20 ms
8,896 KB
testcase_26 AC 19 ms
8,940 KB
testcase_27 AC 20 ms
8,984 KB
testcase_28 AC 20 ms
8,892 KB
testcase_29 AC 19 ms
9,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
n = int(input())
sum=0
for _ in range(n):
    sum+=Decimal(input())
if sum.is_zero():
    print('%.10f'%sum)
else:
    print(sum.quantize(Decimal('1e-10')))
0