https://www.acmicpc.net/problem/31450
31450번: Everyone is a 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
www.acmicpc.net
1 2 3 4 5 6 7 8 9 10 11 | def sol(m, k): if m % k == 0: return "Yes" else: return "No" if __name__ == '__main__': m, k = map(int, input().split()) print(sol(m, k)) | cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 31614 分 (Minutes) (0) | 2024.04.15 |
---|---|
백준 31654 Adding Trouble (0) | 2024.04.15 |
백준 31429 SUAPC 2023 Summer (0) | 2024.02.26 |
leetcode 3038. Maximum Number of Operations With the Same Score I (0) | 2024.02.18 |
leetcode 1941. Check if All Characters Have Equal Number of Occurrences (0) | 2024.02.17 |
댓글