Algorithm/BOJ
[백준/5086] 배수와 약수 (with 파이썬)
Potato potage
2022. 12. 14. 22:12
반응형
✔ 문제
✔ 풀이
import sys
input = sys.stdin.readline
while True:
x, y = map(int, input().split())
if x == 0 and y == 0:
break
if y % x == 0:
print("factor")
elif x % y == 0:
print("multiple")
else:
print("neither")
✔ 후기
(◕ヮ◕)〜⊹
반응형