BlueBook - Cost
View as PDFBlueBook
Given an integer  
 representing the mass of a letter
in grams, print out the cost in cents to mail the letter.
The first line of input will be the number of test cases  
.
The following 
 lines will contain 
. Output the cost in cents to
mail the letter.
The pricing is as follows:
 costs 38 cents
 costs 55 cents
 costs 73 cents
if  then the base cost is 73 cents, plus 24 cents for every
additional 50 grams or part thereof.
Input Specification
The first line of input will be the number of test cases  
.
The following 
 lines will contain 
.
Output Specification
Output the cost in cents to mail the letter.
Sample Input
2
5
101
Sample Output
38
97
Comments