[Java/C++/Python] 3 Lines
Java:\njava\n    int[] count;\n    public ParkingSystem(int big, int medium, int small) {\n        count = new int[]{big, medium, small};\n    }\n\n    public b
**Java:**\n```java\n    int[] count;\n    public ParkingSystem(int big, int medium, int small) {\n        count = new int[]{big, medium, small};\n    }\n\n    public boolean addCar(int carType) {\n        return count[carType - 1]-- > 0;\n    }\n```\n\n**C++:**\n```cpp\n    vector<int> count;\n    ParkingSystem(int big, int medium, int small) {\n        count = {big, medium, small};\n    }\n\n    bool addCar(int carType) {\n        return count[carType - 1]-- > 0;\n    }\n```\n\n**Python:**\n```py\n    def __init__(self, big, medium, small):\n        self.A = [big, medium, small]\n\n    def addCar(self, carType):\n        self.A[carType - 1] -= 1\n        return self.A[carType - 1] >= 0\n```\n
[]