728x90 19451 [SWEA/Python] 1945. 간단한 소인수분해 📌 문제 https://swexpertacademy.com/main/main.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 📌 코드 T = int(input()) for t in range(1, T+1) : N = int(input()) result = [] while N != 1 : if not N%2 : result.append(2) N /= 2 elif not N%3 : result.append(3) N /= 3 elif not N%5 : result.append(5) N /= 5 elif not N%7 : result.append(7) N /= 7 elif not N%11 : result.appe.. 2021. 8. 9. 이전 1 다음 728x90