https://programmers.co.kr/learn/courses/30/lessons/76501
ํ์ด
# ํ๋ก๊ทธ๋๋จธ์ค 1๋จ๊ฒ - ์์ ๋ํ๊ธฐ
def solution(absolutes, signs):
answer = 0
for i in range(len(absolutes)):
if signs[i] == True:
answer += absolutes[i]
else:
answer -= absolutes[i]
return answer
signs[i] ๊ฐ ์ฐธ์ผ ๊ฒฝ์ฐ absolutes[i] ๋ ์์ ์ด๋ฏ๋ก ๋ํด์ฃผ๊ณ ๊ทธ ์ธ์ ๊ฒฝ์ฐ๋ ๋นผ์ฃผ๋๋ก ํ๋ค.