Simple and fast solution (96.55%)
Runtime beats 96.55 % of python3 submissions.\nMemory usage beats 18.01 % of python3 submissions.\n\nclass ParkingSystem:\n    places = dict()\n    \n    def __
Runtime beats 96.55 % of python3 submissions.\nMemory usage beats 18.01 % of python3 submissions.\n```\nclass ParkingSystem:\n    places = dict()\n    \n    def __init__(self, big: int, medium: int, small: int):\n        self.places[1] = big\n        self.places[2] = medium\n        self.places[3] = small\n        \n    def addCar(self, carType: int) -> bool:\n        if self.places[carType] > 0:\n            self.places[carType] -= 1\n            return True\n        else:\n            return False\n```
['Python', 'Python3']