407076: GYM102697 047 Who will win

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

Description

047. Who will wintime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Two runners are racing against each other in the 400 meter dash and you want to know who will win. The current distance covered by each runner(meters) and the speed (meters per second) will be given for each runner. Return whether the first or the second runner will end up winning the race assuming they travel at the speed throughout the remainder of the race.

Input

The first line will contain a sentence describing the first runner and the second will describe the second. The following format will be used: "runner X is traveling at Y meters per second and has already covered Z meters"

Output

Print which runner will win the race in the following format: "Runner X wins"

ExampleInput
runner 1 is traveling at 10.5 meters per second and has already covered 100.0 meters
runner 2 is traveling at 9.3 meters per second and has already covered 300 meters
Output
Runner 2 wins

加入题单

上一题 下一题 算法标签: