結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー 👑 rin204rin204
提出日時 2022-07-04 14:07:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 71,448 KB
最終ジャッジ日時 2023-08-20 20:58:05
合計ジャッジ時間 4,079 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,032 KB
testcase_01 AC 80 ms
71,128 KB
testcase_02 AC 74 ms
71,276 KB
testcase_03 AC 75 ms
71,316 KB
testcase_04 AC 77 ms
71,088 KB
testcase_05 AC 74 ms
71,204 KB
testcase_06 AC 77 ms
71,144 KB
testcase_07 AC 74 ms
71,176 KB
testcase_08 AC 77 ms
71,084 KB
testcase_09 AC 77 ms
71,448 KB
testcase_10 WA -
testcase_11 AC 76 ms
71,440 KB
testcase_12 AC 78 ms
71,196 KB
testcase_13 AC 75 ms
71,352 KB
testcase_14 AC 75 ms
71,172 KB
testcase_15 AC 76 ms
71,276 KB
testcase_16 AC 75 ms
71,084 KB
testcase_17 WA -
testcase_18 AC 77 ms
71,144 KB
testcase_19 AC 75 ms
71,208 KB
testcase_20 AC 75 ms
71,204 KB
testcase_21 AC 76 ms
71,332 KB
testcase_22 AC 74 ms
70,996 KB
testcase_23 AC 78 ms
71,180 KB
testcase_24 AC 77 ms
71,244 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 74 ms
71,396 KB
testcase_29 AC 76 ms
71,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
tot = 0
for _ in range(n):
    S = input()
    try:
        ind = S.index(".")
    except:
        ind = len(S)
    S = S[:ind] + S[ind+1:].ljust(10, "0")
    tot += int(S)
tot = str(tot)
print(f"{tot[:-10]}.{tot[-10:]}")
0