c++ | easy
\nclass Solution {\npublic:\n    int fillCups(vector<int>& amount) {\n      sort(amount.begin(),amount.end()); \n      int x=amount[0];\n      int y=amount[1];\
```\nclass 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**Upvote if you like my approch**\n\n![image](https://assets.leetcode.com/users/images/fdfeb765-b800-43b8-9daa-55c63c222a51_1657448583.7556148.png)\n
['C']