Roller Coaster Ride | 프로그래밍의 벗 PivotOJ
PivotOJ

Roller Coaster Ride

시간 제한: 1000ms메모리 제한: 2048MB출처: CCC 2025 JuniorBOJ 34454

문제

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, NN, representing your place in line. For example, if NN is 55 then you are the fifth person in line.

The second line contains a positive integer, CC, representing the number of cars the train has.

The third line contains a positive integer, PP, 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
출력
no

예제 2

입력
12
4
3
출력
yes
코드를 제출하려면 로그인하세요.