백준 알고리즘
[백준(BOJ) - Python] 5086번 <배수와 약수>
멜론이즈
2022. 3. 5. 20:45
📄문제
🔍나의 코드
import sys
input = sys.stdin.readline
while True:
a, b = map(int,input().split())
if a == 0 and b == 0:
break
elif a % b == 0:
print('multiple')
elif b % a == 0:
print('factor')
else:
print('neither')