結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー バカらっくバカらっく
提出日時 2019-09-26 01:23:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 378 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 11,828 KB
実行使用メモリ 10,120 KB
最終ジャッジ日時 2023-10-24 06:19:14
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 32 ms
10,088 KB
testcase_02 AC 30 ms
10,088 KB
testcase_03 RE -
testcase_04 AC 31 ms
10,088 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 WA -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 31 ms
10,088 KB
testcase_14 AC 30 ms
10,088 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 30 ms
10,088 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 31 ms
10,088 KB
testcase_29 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

inputCount = int(input())

mul = pow(10, 10)

list = []
for i in range(inputCount):
    (seisu,syousu) = input().rstrip().split(".")
    while len(syousu) < 10:
        syousu += "0"

    if seisu[0:1] == "-":
        syousu = "-" + syousu

    list.append(int(seisu) * mul + int(syousu))


ans = str(sum(list))

ans = ans[0:len(ans) - 10] + "." + ans[len(ans) - 10:]
print(ans)
0