No author
This post's author information has been deleted.
Introduction to Python Algorithm Problem Solving (Coding Test Preparation)
1. Setting the environment and solving the Kth divisor
Written on
·
204
0
코드는 맞게 작성한것 같은데 이렇게 뜹니다 ㅠ..
Answer 2
코드입니다
import sys #sys.stdin=open("input.txt","rt") n, k=map(int,input().split()) cnt = 0 for i in range(1, n+1): if n%i==0: cnt+=1 if cnt==k: print(i) break else: print(-1)
안녕하세요^^
채점 결과가 이렇게 나오는 코드를 {;}버튼을 사용해서 올려주세요.