結果

問題 No.49 算数の宿題
コンテスト
ユーザー yuki2006
提出日時 2014-10-23 19:00:29
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 166 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 160 ms
コンパイル使用メモリ 77,600 KB
最終ジャッジ日時 2025-12-03 12:50:41
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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