-Code
n = int(input())
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
res = 0
for i in range(n):
if a_list[i] > b_list[i]:
res += 3
elif a_list[i] == b_list[i]:
res += 1
print(res)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 29863번 Arno's Sleep Schedule (0) | 2023.12.25 |
---|---|
[백준/파이썬] 28454번 Gift Expire Date (0) | 2023.12.24 |
[백준/파이썬] 20282번 Game Show! (0) | 2023.12.22 |
[백준/파이썬] 25774번 Simplified Calendar System (0) | 2023.12.21 |
[백준/파이썬] 15429번 Odd Gnome (0) | 2023.12.20 |