▶31450 - Everyone is winner
▶문제
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 and : is the number of medals and 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 medals to the kids so that each kid gets the same number of medals, or the word No otherwise.
▶풀이
m, k = map(int, input().split())
if m % k == 0:
print('Yes')
else:
print('No')
'BOJ Code > Bronze_Silver' 카테고리의 다른 글
[백준/BOJ] silver5 - 25193번 곰곰이의 식단 관리 (Python) (4) | 2024.09.07 |
---|---|
[백준/BOJ] silver2 - 31910번 이진수 격차 (Python) (0) | 2024.08.31 |
[백준/BOJ] bronze3 - 9063번 대지 (Python) (11) | 2023.08.03 |
[백준/BOJ] bronze2 - 13458번 시험 감독 (Python) (0) | 2023.07.28 |
[백준/BOJ] silver2 - 4963번 섬의 개수 (Python) (0) | 2023.07.19 |