반응형
# @Author YoungMinKim
# baekjoon
import sys
while True :
a,b = map(int,sys.stdin.readline().split())
if a == b == 0:
break
if a>b and a%b == 0:
print('multiple')
elif a<b and b%a == 0:
print('factor')
else:
print('neither')
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 11653 (0) | 2020.09.16 |
---|---|
baekjoon - python - 1037 (0) | 2020.09.16 |
baekjoon - python - 15894 (0) | 2020.09.14 |
baekjoon - python - 15890 (0) | 2020.09.14 |
baekjoon - python - 15680 (0) | 2020.09.14 |
댓글