class Solution { public: vector<int> numOfBurgers(int ts, int cs) { vector<int> a; if(ts%2==1||ts>4*cs||ts<2*cs) { return a; } int p=ts/2; int tu=p-cs; int du=cs-tu; a.push_back(tu); a.push_back(du); return a; } };
class Solution { public: vector<int> numOfBurgers(int ts, int cs) { vector<int> a; if(ts%2==1||ts>4*cs||ts<2*cs) { return a; } int p=ts/2; int tu=p-cs; int du=cs-tu; a.push_back(tu); a.push_back(du); return a; } };