Easy10 pts
Bill Division
n items, k (0-based) Anna declined. Split rest (n-1) items equally. b = amount Anna was charged. Print (b - her share) or Bon Appetit.
Input
n k\narr\nb
Output
Overcharge or Bon Appetit.
Sample
4 1 3 10 2 9 12
Expected
5
Loading editor…
Output
No output yet. Run your code to see results.