728x90
[나의 풀이]
def solution(number, n, m):
answer = 0
if number%(n*m)==0:
return 1
elif number%n==0 and number%m==0:
return 1
else:
return 0
728x90
'STUDY > Python' 카테고리의 다른 글
[자료구조] 스택 stack (0) | 2023.06.19 |
---|---|
[프로그래머스] 문자열의 뒤의 n글자 (0) | 2023.06.12 |
[프로그래머스] 전화번호 목록 (0) | 2023.06.07 |
@staticmethod 란? (0) | 2023.04.19 |
[프로그래머스] 겹치는 선분의 길이 파이썬 (0) | 2023.04.10 |