Logo
(追記) (追記ここまで)

34363번 - Driving Dilemma 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB28923021078.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).

제한

예제 입력 1

45
60.0
1.0

예제 출력 1

MADE IT

예제 입력 2

55
200.0
2.0

예제 출력 2

FAILED TEST

힌트

출처

School > CS@Mines > CS@Mines HSPC 2023 > Beginner B번

  • 문제를 만든 사람: Sumner Evans
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /