728x90
반응형
쉬운 수학문제이다.
while True:
n1, n2 = map(int, input().split())
if n1 + n2 == 0:
break
if n1 % n2 == 0:
print('multiple')
elif n2 % n1 == 0:
print('factor')
else:
print('neither')
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 5354번 J박스(python) (0) | 2020.02.12 |
---|---|
백준 알고리즘 5218번 알파벳 거리(python) (0) | 2020.02.12 |
백준 알고리즘 4938번 베르트랑 공준(python) (0) | 2020.02.12 |
백준 알고리즘 4673번 셀프 넘버(python) (0) | 2020.02.12 |
백준 알고리즘 4504번 배수 찾기(python) (0) | 2020.02.12 |