407093: GYM102697 064 Gas Cost

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

064. Gas Costtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

When using an automobile, one often seeks to understand what they will be expected to pay for the usage of gas resources. The cost of driving a certain distance can be calculated based on the miles per gallon(mpg) of the car, the distance traveled, and the cost per gallon currently. Taking in these three values as input, determine the total cost of the trip.

Input

The first line contains three space-separated floating point values that represent the miles per gallon, distance, and cost per gallon respectively.

Output

Output a single floating point value that represents the dollar cost of the designated trip.

ExampleInput
10 100 3.5
Output
35.0

加入题单

算法标签: