def bonAppetit(bill, k, b):
# Write your code here
actual = (sum(bill) - bill[k]) // 2
result = b - actual
if result > 0:
print(result)
else:
print('Bon Appetit')
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
[HackerRank-python] Drawing Book (0) | 2022.07.07 |
---|---|
[HackerRank-Python] Sales by Match (0) | 2022.07.07 |
[HackerRank-python] Day of the Programmer (0) | 2022.07.03 |
[HackerRank-python] Migratory Birds (0) | 2022.07.03 |
[HackerRank-python] Divisible Sum Pairs (0) | 2022.07.03 |