https://leetcode.com/problems/baseball-game


Runtime: 37 ms, faster than 66.50% of Python3 online submissions for Baseball Game.
Memory Usage: 14.6 MB, less than 18.05% of Python3 online submissions for Baseball Game.



```python
class Solution:
    def calPoints(self, ops: List[str]) -> int:
        #12:58
        record_list = []
        for operation in ops:
            if operation == "C":
                record_list = record_list[:-1]
            elif operation == "D":
                record_list += [record_list[-1] * 2]
            elif operation == "+":
                record_list += [sum([int(i) for i in record_list[-2:]])]
            else:
                record_list += [int(operation)]
        return sum(record_list)
        #1:01
```
