[Programmers] 음양 더하기
Python
def solution(absolutes, signs):
answer = 0
for i in range(len(signs)):
if signs[i] == True:
answer += absolutes[i]
else:
answer -= absolutes[i]
return answer
댓글남기기