We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Is simply did the same thing, although my variables are named a little different, the logic is still the same. In my opinion the easiest way to solve it.
# Enter your code here. Read input from STDIN. Print output to STDOUTn,k=[int(x)forxininput().split(" ")]c=[int(x)forxininput().split(" ")]charged=int(input())print("Bon Appetit"if(sum(c)-c[k])//2==chargedelsec[k]//2)
Cookie support is required to access HackerRank
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 →
Is simply did the same thing, although my variables are named a little different, the logic is still the same. In my opinion the easiest way to solve it.