๋ฐฐ์์ ์ฝ์ (1) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Python] ๋ฐฑ์ค #5086 - ๋ฐฐ์์ ์ฝ์ https://www.acmicpc.net/problem/5086 5086๋ฒ: ๋ฐฐ์์ ์ฝ์ ๊ฐ ํ ์คํธ ์ผ์ด์ค๋ง๋ค ์ฒซ ๋ฒ์งธ ์ซ์๊ฐ ๋ ๋ฒ์งธ ์ซ์์ ์ฝ์๋ผ๋ฉด factor๋ฅผ, ๋ฐฐ์๋ผ๋ฉด multiple์, ๋ ๋ค ์๋๋ผ๋ฉด neither๋ฅผ ์ถ๋ ฅํ๋ค. www.acmicpc.net ํ์ด while True: a,b = map(int,input().split()) if a==0 and b==0: break if a%b==0: print("multiple") elif b%a==0: print("factor") else: print("neither") ์กฐ๊ฑด๋ฌธ์ ์ฌ์ฉํ๋ฉด๋๋ค. ์ด์ 1 ๋ค์