
[Programmers] Level 2. 숫자 블록
·
코딩테스트/Python
🔗 Problem Link 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr❔Thinkingbegin, end가 주어질 때, 해당 구간에 놓이는 숫자 블록을 반환한다.숫자 블록은 n*2, n*3, n*4 순서로 놓인다n = 1인 경우, [0,1,1,1,1,1,1,1,1]n = 2인 경우, [0,1,1,1,2,1,2,2,1]n = 3인 경우, [0,1,1,1,2,1,3,2,1]1 블록에 적힌 숫자 💻Solutionfrom bisect import bisect_leftdef find_divisors(n)->list: divisor_list = [] for i in range(1, int(n**0..