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

[백준/파이썬]20944번 Automated Checking Machine

by 현장 2021. 4. 26.

-코드

x = list(map(int, input().split()))
y = list(map(int, input().split()))
r = 0

for i in range(5):
    if x[i] != y[i]:
        r += 1
if r == 5:
    print("Y")
else:
    print("N")