Canadian Computing Competition: 2024 Stage 1, Junior #1
There is a new conveyor belt sushi restaurant in town. Plates of sushi travel around the restaurant on a raised conveyor belt and customers choose what to eat by removing plates.
Each red plate of sushi costs
Your job is to determine the cost of a meal, given the number of plates of each colour chosen by a customer.
Input Specification
The first line of input contains a non-negative integer,
Output Specification
Output the non-negative integer,
Sample Input
0
2
4
Output for Sample Input
28
Explanation of Output for Sample Input
This customer chose
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.