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

31450번 - Everyone is a winner 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB38252899277775.978%

문제

Your friend is a kindergarten teacher. Since the Olympic Games in Paris are approaching, he wants to teach the kids about different aspects of sports competitions. As part of this idea, he plans to have one day when kids receive medals for their behaviour in kindergarten. For example, he would give out a medal for the kid who shares their toys the most, or for the kid who encourages their playmates most creatively. To ensure kids are not offended at the end of the day, the teacher wants no kid to get fewer medals than another. The teacher tells you the number of medals he prepared and the number of kids, and he asks you to say whether it is possible to give out all of these medals to the kids so that they each get the same number of medals.

입력

The input consists of one line. This line contains two space-separated integers $M$ and $K$: $M$ is the number of medals and $K$ is the number of kids.

출력

The output should contain a single line, consisting of a word: the word Yes if it is possible to give out all $M$ medals to the $K$ kids so that each kid gets the same number of medals, or the word No otherwise.

제한

  • 1ドル \le M \le 1,円 000,円 000,円 000$
  • 1ドル \le K \le 1,円 000,円 000,円 000$

예제 입력 1

6 3

예제 출력 1

Yes

예제 입력 2

5 3

예제 출력 2

No

힌트

출처

ICPC > Regionals > Europe > Southwestern European Regional Contest > SWERC 2023-2024 연습 세션 PC번

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

출처

대학교 대회

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

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