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

[백준/파이썬] 21022번 Three Points for a Win

by 현장 2023. 12. 23.

-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)