#C11809. Baking Time Calculation
Baking Time Calculation
Baking Time Calculation
You are given a list of cake orders. Each order consists of a cake type and the quantity ordered. The baking time for each cake type is defined as follows:
(\texttt{vanilla} = 60) seconds, (\texttt{chocolate} = 75) seconds, (\texttt{red_velvet} = 90) seconds, and (\texttt{cheesecake} = 120) seconds.
Your task is to compute the total baking time required to process all orders.
Input Format: The first line contains an integer (N) denoting the number of orders. Each of the following (N) lines contains a string and an integer separated by space representing the cake type and the quantity respectively.
Note: The input is read from stdin
and the output must be written to stdout
.
inputFormat
The input begins with an integer (N) ( (1 \leq N \leq 10^5) ) on a single line, representing the number of cake orders. This is followed by (N) lines where each line contains a cake type (one of: vanilla, chocolate, red_velvet, cheesecake) and an integer (q) ((1 \leq q \leq 100)) indicating the quantity of that cake.
outputFormat
Output a single integer representing the total baking time required to fulfill all the cake orders. The output should be written to stdout
.## sample
1
vanilla 1
60