| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 289 | 230 | 210 | 78.947% |
The day has finally come for Rishi to take his driving test. He's learned all of the rules of the road. He has practiced for many hours, and now he just needs to follow all of the rules of the road to pass the driving test.
Rishi's first challenge comes at the first intersection. As he approaches the intersection, the light turns yellow! If he does not make it to the other side of the intersection before the light turns red, he will have violated the rules of the road and will fail the test.
Because Rishi is a good driver, he is driving at exactly the speed limit, and will continue going at exactly the speed limit as he goes through the intersection. Rishi is also very good at determining distances, so he knows exactly how many feet away from the end of the intersection he is. And, since Rishi has practiced driving so much, he also knows exactly how many seconds the light will remain yellow before turning red. After turning red, the traffic light will remain red.
If Rishi continues driving at exactly the speed limit, will he make it to the end of the intersection or beyond that point before the light turns red? (For the purpose of this problem, you can assume that Rishi and his car are a single point with no length or width.)
The first line of input will contain of a single integer 10ドル \leq S \leq 10,000円,ドル the speed limit (in miles per hour) of the road Rishi is driving on.
The second line of input will contain of a single real number 0ドル \leq D \leq 100,000円,ドル the distance (in feet) to the end of the intersection. The number will have at most 4ドル$ digits after the decimal point.
The third line of input will contain a single real number 0ドル \leq T \leq 100,000円,ドル the amount of time (in seconds) before the traffic light turns red. The number will have at most 4ドル$ digits after the decimal point.
In order to avoid problems with rounding, you are guaranteed that Rishi will be at least one foot from the end of the intersection, or at least one foot after the end of the intersection when the light turns red. Note your comparisons should still be exact; do not factor in this guarantee into your answer.
If Rishi will make it through the intersection before the light turns red, output "MADE IT" (without the quotes). Otherwise, output "FAILED TEST" (without the quotes).
45 60.0 1.0
MADE IT
55 200.0 2.0
FAILED TEST
School > CS@Mines > CS@Mines HSPC 2023 > Beginner B번