Car and truck
Time Limit: 1 sec
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?
In each line there will be 3 inputs (N,P,M<1000).
For each line of output you have to print the Truck speed and Cars speed in a separate line.
380 4 5
Problem Setter: Parag Paul