You are viewing a single comment's thread. Return to all comments →
I wrote a two liner
def bonAppetit(n, k, b, ar): annaBill = sum(ar[i] for i in range(n) if i != k)//2 return 'Bon Appetit' if annaBill == b else str(b-annaBill)
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 →
I wrote a two liner