結果

問題 No.49 算数の宿題
ユーザー mlihua09mlihua09
提出日時 2020-08-28 19:02:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 476 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 71,380 KB
最終ジャッジ日時 2023-08-24 17:48:33
合計ジャッジ時間 1,649 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,096 KB
testcase_01 AC 71 ms
70,928 KB
testcase_02 AC 71 ms
71,040 KB
testcase_03 AC 70 ms
71,036 KB
testcase_04 AC 69 ms
71,096 KB
testcase_05 AC 71 ms
71,260 KB
testcase_06 AC 71 ms
71,380 KB
testcase_07 AC 71 ms
71,080 KB
testcase_08 AC 70 ms
71,192 KB
testcase_09 AC 71 ms
71,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


S = input().split('*')

ans = 0

for s in S:
    
    s = list(map(int, s.split('+')))
    
    ans += s.pop(0)
    
    for i in s:
        
        ans *= i

print(ans)
0