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
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 10262번 주사위 게임(python) (0) | 2021.02.19 |
---|---|
백준 알고리즘 10270번 Algebraic Teamwork(python) (0) | 2021.02.19 |
백준 알고리즘 10406번 The fellowship of the ring(python) (0) | 2021.02.19 |
백준 알고리즘 10409번 서버(python) (0) | 2021.02.19 |
백준 알고리즘 10539번 수빈이와 수열(python) (0) | 2021.02.19 |