結果

問題 No.49 算数の宿題
ユーザー yuki2006yuki2006
提出日時 2014-10-23 19:00:29
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,088 KB
最終ジャッジ日時 2023-08-24 17:21:59
合計ジャッジ時間 2,066 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,088 KB
testcase_01 AC 11 ms
5,928 KB
testcase_02 AC 12 ms
5,848 KB
testcase_03 AC 11 ms
5,940 KB
testcase_04 AC 12 ms
5,864 KB
testcase_05 AC 11 ms
5,984 KB
testcase_06 AC 11 ms
5,904 KB
testcase_07 AC 11 ms
6,048 KB
testcase_08 AC 11 ms
5,972 KB
testcase_09 AC 11 ms
5,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = raw_input()
total = 0
for s in map(lambda s: s.split("+"), S.split("*")):
    total += int(s[0])
    for si in s[1:]:
        total *= int(si)
print total
0