結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー AEnAEn
提出日時 2022-05-19 00:54:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 1,141 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 53,528 KB
最終ジャッジ日時 2023-10-17 06:34:17
合計ジャッジ時間 3,369 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
sm = 0
for i in range(N):
    s = input()
    if '.' in s:
        id = s.index('.')
        # print(int(s[:id]+s[id+1:]+'0'*(10-len(s[id+1:]))))
        sm += int(s[:id]+s[id+1:]+'0'*(10-len(s[id+1:])))
    else:
        # print(int(s+'0'*10))
        sm += int(s+'0'*10)
print(str(sm)[:-10]+'.'+str(sm)[-10:])
0