🧠𝗔𝗹𝗴𝗼𝗿𝗶𝘁𝗵𝗺/💛 백준
[준비운동 PART1. 튼튼한 기본기] 약수구하기(2501번)
안오늘
2021. 7. 1. 10:39
1. 문제설명
https://www.acmicpc.net/problem/2501
2. 나의 풀이
n, k = map(int, input().split())
divisors = []
for i in range(1, n+1):
if n % i == 0:
divisors.append(i)
if len(divisors) < k:
print(0)
else:
print(divisors[k-1])