Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
y_woo :) 연우의 개발 블로그
  • ALGORITHM
  • LEARNING
  • STUDY
  • TAG
  • POST
    CHO YEONWOO

    CHO YEONWOO

    나는야 연우초

    • South Korea, Seoul
    • Email
    • Website
    • Email

    알고리즘 공부

    less than 1 minute read

    소인수분해-silver4
    https://www.acmicpc.net/problem/11653 숫자 입력 받으면 소인수들을 오름차순으로 출력하기
    i를 2부터 나누어떨어지는 것 차례로 출력

    N = int(input()); i=2
    while N>1:
        if(N%i==0):
            N/=i
            print(i)
        else:
             i+=1
    

    소요시간 ; 15분

    Tags: algorithms, programmers, python

    Categories: algorithms

    Updated: August 5, 2020

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    Effective Java - item15

    1 minute read

    4장 클래스와 인터페이스

    Effective Java - item14

    1 minute read

    3장 모든 객체의 공통 메서드

    Effective Java - item13

    1 minute read

    3장 모든 객체의 공통 메서드

    Effective Java - item10-12

    2 minute read

    3장 모든 객체의 공통 메서드

    • Follow:
    • Feed
    © 2021 Cho Yeonwoo. Powered by Jekyll & Minimal Mistakes.