[백준] 5086번 : 배수와 약수 - Python(파이썬)

강재원·2022년 10월 2일
0

[코딩테스트] Python

목록 보기
86/200



https://www.acmicpc.net/problem/5086

while True:
    a,b=map(int,input().split())
    if a==0 and b==0: break
    if a>=b and a%b==0: print("multiple")
    elif b>=a and b%a==0: print("factor")
    else: print("neither")
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글