본문 바로가기
반응형

백준 소인수분해1

백준11653: 소인수 분해 (Python) N = int(input()) def fun(N): for i in range(2,N+1): while (N%i == 0): N = int(N/i) print(i) continue fun(N) 몫이 0인경우만 출력 주말이니까 가볍게,,, 2021. 12. 12.
반응형