EasyRating 1000
Vending Machine
A machine sells items at price p. Customers insert amounts one per line until END; if an amount is at least p, print the change, otherwise print
not enough.Input
p, then amounts, then END.
Output
One line each.
Sample 1
Input
25 30 20 25 END
Output
5 not enough 0
Sample 2
Input
10 15 END
Output
5
Output appears here