Runtime: 29 ms, faster than 100% of C++ online submissions for Design Parking System.
```\nclass ParkingSystem\n{\npublic:\n    int b, m, s;\n    ParkingSystem(int big, int medium, int small)\n    {\n        b = big;\n        m = medium;\n       
```\nclass ParkingSystem\n{\npublic:\n    int b, m, s;\n    ParkingSystem(int big, int medium, int small)\n    {\n        b = big;\n        m = medium;\n        s = small;\n    }\n\n    bool addCar(int carType)\n    {\n        if (carType == 1)\n        {\n            if (b >= 1)\n            {\n                b--;\n                return true;\n            }\n            else\n                return false;\n        }\n        if (carType == 2)\n        {\n            if (m >= 1)\n            {\n                m--;\n                return true;\n            }\n            else\n                return false;\n        }\n        if (carType == 3)\n        {\n            if (s >= 1)\n            {\n                s--;\n                return true;\n            }\n            else\n                return false;\n        }\n        return false;\n    }\n};
[]