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

[백준/파이썬] 13456번 Richard Hamming

by 현장 2024. 6. 15.

-Code

for _ in range(int(input())):
    n = int(input())
    v_list = list(map(int, input().split()))
    u_list = list(map(int, input().split()))
    res = 0

    for i in range(n):
        if v_list[i] != u_list[i]:
            res += 1

    print(res)