본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 24544번 카카오뷰 큐레이팅 효용성 분석

by 현장 2023. 4. 15.

-Code

n = int(input())
interest = list(map(int, input().split()))
registration = list(map(int, input().split()))
not_regust = 0

for i in range(n):
    if registration[i] == 0:
        not_regust += interest[i]
print(sum(interest))
print(not_regust)