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

6763번 - Speed fines are not fine! 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB50953283308765.168%

문제

Many communities now have “radar” signs that tell drivers what their speed is, in the hope that they will slow down.

You will output a message for a “radar” sign. The message will display information to a driver based on his/her speed according to the following table:

km/h over the limit Fine
1 to 20 100ドル
21 to 30 270ドル
31 or above 500ドル

입력

The input will be two integers. The first line of input will be speed limit. The second line of input will be the recorded speed of the car.

출력

If the driver is not speeding, the output should be:

Congratulations, you are within the speed limit!

If the driver is speeding, the output should be:

You are speeding and your fine is $F.

where F is the amount of the fine as described in the table above.

제한

예제 입력 1

100
131

예제 출력 1

You are speeding and your fine is 500ドル.

예제 입력 2

40
39

예제 출력 2

Congratulations, you are within the speed limit!

예제 입력 3

100
120

예제 출력 3

You are speeding and your fine is 100ドル.

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2012 > CCC 2012 Junior Division 1번

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

출처

대학교 대회

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

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