-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)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 13234번 George Boole (0) | 2023.04.17 |
---|---|
[백준/파이썬] 9584번 Fraud Busters (0) | 2023.04.16 |
[백준/파이썬] 12836번 가계부 (Easy) (0) | 2023.04.14 |
[백준/파이썬] 14175번 The Cow-Signal (0) | 2023.04.13 |
[백준/파이썬] 10643번 FUNGHI (0) | 2023.04.12 |