while True :
try :
num1 , num2 = map(int, input().split())
if num1 < num2 and num2 % num1 == 0 :
print('factor')
if num1 > num2 and num1 % num2 == 0 :
print('multiple')
if num2 % num1 > 0 and num1 % num2 > 0:
print('neither')
except ZeroDivisionError :
break
'coding > python 코딩테스트' 카테고리의 다른 글
[백준]분해합 (0) | 2024.11.27 |
---|---|
1085번 직사각형에서 탈출 (0) | 2024.09.28 |
백준[10807] 개수 세기/파이썬 (0) | 2024.06.27 |
백준[25304] 영수증/파이썬 (0) | 2024.06.27 |