O(1) Complexity
Complexity\n- Time complexity:\nO(1)\n- Space complexity:\nO(1)\n# Code\ncsharp []\npublic class Solution {\n    public int FillCups(int[] amount)\n    {\n     
# Complexity\n- Time complexity:\nO(1)\n- Space complexity:\nO(1)\n# Code\n```csharp []\npublic class Solution {\n    public int FillCups(int[] amount)\n    {\n        Array.Sort(amount);\n        if (amount[0] + amount[1] >= amount[2])\n            return (amount.Sum() + 1) / 2;\n        return amount[2];\n    }\n}\n```
['C#']