728x90
반응형

단순 구현 문제이다.

X = list(map(int, input().split()))
Y = list(map(int, input().split()))
for i in range(5):
    X[i] += Y[i]
print('Y' if X.count(1) == 5 else 'N')
728x90
반응형

+ Recent posts