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

34454번 - Roller Coaster Ride 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB85964761876.391%

문제

You are spending the day at the CEMC’s funfair. One of the rides at the funfair is a roller coaster which has one train with a number of cars. Each car holds the same number of people.

When you arrive at the roller coaster, you see that there is a line. Your job is to determine whether or not you will be on the next train ride, assuming that every car is fully occupied for every ride.

입력

The first line of input contains a positive integer, $N,ドル representing your place in line. For example, if $N$ is 5ドル$ then you are the fifth person in line.

The second line contains a positive integer, $C,ドル representing the number of cars the train has.

The third line contains a positive integer, $P,ドル representing the number of people a single car holds.

출력

Output either yes or no, indicating whether or not you will be on the next train ride.

제한

예제 입력 1

14
3
2

예제 출력 1

no

The train has 3ドル$ cars and each car holds 2ドル$ people. Therefore, 6ドル$ people can ride the next train. Since you are the 14ドル$th person in line, you will not be on the next train ride.

예제 입력 2

12
4
3

예제 출력 2

yes

The train has 4ドル$ cars and each car holds 3ドル$ people. Therefore, 12ドル$ people can ride the next train. Since you are the 12ドル$th person in line, you will be on the next train ride.

노트

출처

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

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

출처

대학교 대회

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

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