[Level 1] / [Python] 직사각형 별찍기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12969 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr a, b = map(int, input().strip().split(' ')) for i in range(b): for j in range(a): print("*", end="") print(end='\n')
[Level 1] / [Python] 부족한 금액 계산하기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/82612 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(price, money, count): answer = price for i in range(2, count+1): answer += price * i return answer-money if answer-money >= 0 else 0
[Level 1] / [Python] 행렬의 덧셈
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12950 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(arr1, arr2): answer = [[0]*len(arr1[0]) for _ in range(len(arr1))] sum = 0 for i in range(len(arr1)): for j in range(len(arr1[0])): sum = arr1[i][j] + arr2[i][j] answer[i][j] = sum return answer
[Level 1] / [Python] 약수의 개수와 덧셈
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/77884 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def common_division(num): cd_list = [] for i in range(1, num//2 + 1): if num % i == 0: cd_list.append(i) cd_list.append(int(num/i)) return len(sorted(set(cd_list))) def solution(left, right): answer = 0 for i in range(left,..
[Level 1] / [Python] 문자열 다루기 기본
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12918 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(s): answer = True for i in s: if i.isalpha() == True: return False if len(s) == 4 or len(s) == 6: answer = True else: answer = False return answer
[Level 1] / [Python] 문자열 내림차순으로 배치하기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12917 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(s): answer = '' s = sorted(s, reverse=True) answer = ''.join(s) return answer
[Level 1] / [Python] 내적
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/70128 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(a, b): answer = 0 for i in range(len(a)): answer += a[i]*b[i] return answer
[Level 1] / [Python] 가운데 글자 가져오기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/12903?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(s): answer = '' m = len(s) // 2 if len(s) % 2 == 0: answer = s[m-1:m+1] else: answer = s[m] return answer
욱근욱
'분류 전체보기' 카테고리의 글 목록 (65 Page)