• + 0 comments

    C# solution

    public static void bonAppetit(List<int> bill, int k, int b)
        {
            bill.RemoveAt(k);
            int realBill = (bill.Sum())/2;
            
            Console.WriteLine((realBill == b) ? "Bon Appetit" : b-realBill);
        }