| CodeRams Practice Problem Archive |
|---|
| Finished |
Over the quarantine season, you decide to watch your weight by limiting yourself to a certain amount of calories a day. In your house, you stocked up on a small variety of foods before the quarantine, and regardless of what time of the day it is, you must choose from these items:
Steak: 500 Cal
Apple: 100 Cal
Bread: 50 Cal
You will be given a number $$$n$$$, denoting the number of calories you have limited yourself to for the day.
$$$n$$$ will be divisible by 50.
Print the minimum amount of articles of food you must consume for the day in order to reach your caloric limit exactly.
2350
Steak: 4 Apples: 3 Bread: 1
2500
Steak: 5 Apples: 0 Bread: 0
| Name |
|---|


