Chocolate Ice-cream
Author: enaim
Problem Setter: Md. Elias Hassan Naim32nd Intake, Dept. of CSE, Bangladesh University of Business and Technology (BUBT)
Roza is a college girl. She has many friends. She loves Gossip, Hangout, Travelling etc. with her friends. She also loves bite Chocolate Ice-cream. Sometimes it helps him to reduce her frustration.
Today she is very upset, sits alone beside window in her home. Because her friends have gone a tour at Cox’s Bazar. She could not go with them because of her family restrictions.
Now she wants to buy an Ice-cream to release her frustration. But she can’t take decision how she will go to her nearest Ice-cream shop. As a you are a friend of Roza That’s why she asks you to write a program, which will determine how she will go to the Ice-cream shop.
Roza has a walking energy e, distance between home and shop is d, and a constant value k. You are to determine how she will go with respect to the following criteria:
Distance is less than or equal walking energy she will go by “Foot”.
Otherwise distance is less then multiple of walking energy by k then she will
go by “Rickshaw”.
If none of this condition are full filled she will be “Crying”.
Input Format
First line of the input file is an integer T (T <= 50) which denotes how many sets of inputs are there. Each of the next T lines contain three integers e, d and k where (1 < e < 10000, 0 < d < 1000, 1 < k < 20).
Output Format
For each line of input produce one line of output. The output should consist of a line with the case number and the text ‘Foot’, ‘Rickshaw’, or ‘Crying’.
Samples
Input
Output
Language | Time | Memory |
GNU C 11 | 1s | 512MB |
GNU C++ 14 | 1s | 512MB |
GNU C++ 11 | 1s | 512MB |