반응형
def solution(absolutes, signs):
return sum([absolutes[i] if signs[i] else -absolutes[i] for i in range(len(signs))])'알고리즘' 카테고리의 다른 글
| [프로그래머스] 없는 숫자 더하기 (0) | 2023.06.28 |
|---|---|
| [프로그래머스] 핸드폰 번호 가리기 (0) | 2023.06.28 |
| [프로그래머스] 나누어 떨어지는 숫자 배열 (0) | 2023.06.27 |
| [프로그래머스] 튜플 (0) | 2023.06.26 |
| [프로그래머스] 의상 (0) | 2023.06.25 |