c++ | easy | fast
\n# Code\n\n//from lee 215\nclass Solution {\npublic:\n        vector<int> numOfBurgers(int t, int c) {\n        if (t % 2 == 0 && c * 2 <= t && t <= c * 4)\n  
\n# Code\n```\n//from lee 215\nclass Solution {\npublic:\n        vector<int> numOfBurgers(int t, int c) {\n        if (t % 2 == 0 && c * 2 <= t && t <= c * 4)\n            return {t / 2 - c, c * 2 - t / 2};\n        return {};\n    }\n};\n```
['C++']