파이썬

Programmers카드 뭉치https://school.programmers.co.kr/learn/courses/30/lessons/159994 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(cards1, cards2, goal): for i in goal: if len(cards1) > 0 and i == cards1[0]: cards1.pop(0) elif len(cards2) > 0 and i == cards2[0]: cards2.pop(0) ..
·Algorithm
Programmers추억 점수https://school.programmers.co.kr/learn/courses/30/lessons/176963 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(name, yearning, photo): answer = [] for i in photo: score = 0 for j in i: if j in name: score += yearning[name.index(j)] answer.append(scor..
·Algorithm
Programmers명예의 전당 (1)https://school.programmers.co.kr/learn/courses/30/lessons/138477 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(k, score): lst, answer = [],[] for i in score: lst.append(i) lst = sorted(lst, reverse=True) if len(lst) > k: lst.pop() answer.app..
·Algorithm
Programmers콜라 문제https://school.programmers.co.kr/learn/courses/30/lessons/132267 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(a, b, n): answer = 0 while n >= a: answer += (n // a) * b n = (n // a) * b + (n % a) return answer
·Algorithm
Programmers푸드 파이트 대회https://school.programmers.co.kr/learn/courses/30/lessons/134240 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr문제코드def solution(food): player = '' for i in range(1, len(food)): player += str(i) * (food[i]//2) return player + '0' + player[::-1]
potato_pizza
'파이썬' 태그의 글 목록 (18 Page)