C++ | One line solution
\nclass Solution {\npublic:\n    int fillCups(vector<int>& amount) {\n        return max(*max_element(begin(amount),end(amount)),(accumulate(begin(amount),end(a
```\nclass Solution {\npublic:\n    int fillCups(vector<int>& amount) {\n        return max(*max_element(begin(amount),end(amount)),(accumulate(begin(amount),end(amount),0)+1)/2);\n    }\n};\n```
['C++']