문제
https://school.programmers.co.kr/learn/courses/30/lessons/86051
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
def solution(numbers):
index = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
answer = []
for number in index:
if number not in numbers:
answer.append(number)
return sum(answer)
'PS (Problem Solving) > Programmers' 카테고리의 다른 글
[프로그래머스] 체육복 (0) | 2022.08.12 |
---|---|
[프로그래머스] [1차] 다트 게임 (0) | 2022.08.11 |
[프로그래머스] 실패율 (0) | 2022.08.09 |
[프로그래머스] 음양 더하기 (0) | 2022.08.08 |
[프로그래머스] 내적 (0) | 2022.08.08 |