You are viewing a single comment's thread. Return to all 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); }
Seems like cookies are disabled on this browser, please enable them to open this website
Bill Division
You are viewing a single comment's thread. Return to all comments →
C# solution