247 - Car and truck
Car and truck
Time Limit: 1 sec
The Problem
The distance between two towns is N km. At the same moment, a passenger car and a truck start moving towards each other from different towns. They meet P hours later. If the car drives M km/hr faster than the truck, what are their speeds?
The Input
In each line there will be 3 inputs (N,P,M<1000).
The Output
For each line of output you have to print the Truck speed and Cars speed in a separate line.
Sample Input
380 4 5
Sample Output
45 50
Problem Setter: Parag Paul