728x90
반응형
문제출처: https://www.acmicpc.net/problem/2501
풀이:
import sys
N, K = list(map(int,input().split(" ")))
les = []
for i in range(1,N+1):
if N% i ==0 :
les.append(i)
if K > len(les):
print(0)
else:
print(les[K-1])
반응형
댓글