Roller Coaster Ride

면접 대비

시간 제한1초메모리 제한2048 MB

요약
줄에서 자신의 순번, 열차의 칸 수, 칸당 정원이 주어질 때 다음 열차에 탈 수 있는지 판정한다.
난이도

쉬움10점 중 1점

유형
수학, 구현
정답자
아직 제출이 없습니다

문제

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.

예제2

  1. 예제 1

    입력
    14
    3
    2
    
    예상 출력
    no
    
  2. 예제 2

    입력
    12
    4
    3
    
    예상 출력
    yes