CPP
\n        class Solution {\npublic:\n    int fillCups(vector& amount) {\n        sort(amount.begin(),amount.end()); \n      int x=amount[0];\n      int y=amount
\n        class Solution {\npublic:\n    int fillCups(vector<int>& amount) {\n        sort(amount.begin(),amount.end()); \n      int x=amount[0];\n      int y=amount[1];\n      int z=amount[2];\n      int sum=x+y+z;\n      if(x+y>z) return sum/2+sum%2;\n      if(x==0 && y==0) return z;\n      else return z;\n    }\n};\n\n\n\n
['C++']