Bolt Speed

3.9

15 votes
Simple-math, Easy, Greedy algorithm, Mathematics, Mathematics, Mathamatics
Problem

Raj and Rahul have been friends for a long time. They love playing games in their leisure time.

Today they are playing Catch and Win. In this game, Raj is standing at the roof of his house. His house is feet high. Raj is having a cricket ball with him. Rahul, on the other hand, is standing on the streets at a distancefeet from Raj's house. Raj drops the ball vertically down from his roof and Rahul would run towards Raj's house and try to catch it. Rahul runs at a speed of Z feet per second. If Rahul is able to catch the ball before or at the moment the ball hits the ground he wins else Raj wins.

Given H, X and Z determine who wins the game.

Note:

Consider acceleration due to gravity to be 32 feet per second squared.

Input: 

First line contains T denoting the number of test cases. Each test case then contains 3 integers namely H, X and Z respectively.

Output:

For each test case output whether Raj wins or Rahul.

Constraints:

1  T  100

1  H, X, Z  106

 

Sample Input
2
5 4 2
16 6 6
Sample Output
Raj
Rahul
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

In the first test case, Rahul would take 2 sec to reach but the ball would have hit the ground by then so Raj wins.

In the second test case, Rahul would take 1 sec to reach the ball. Hence he will able to catch the ball and win the game.

Editor Image

?