보안을 그리다, 훈이

[Baekjoon/Python3] 17350번 2루수 이름이 뭐야 본문

Programming/Python & Data Structures

[Baekjoon/Python3] 17350번 2루수 이름이 뭐야

HooNeee 2020. 12. 8. 18:06

[Baekjoon/Python3] 17350번 2루수 이름이 뭐야

 

www.acmicpc.net/problem/17350

 

17350번: 2루수 이름이 뭐야

선수들 중 뭐(anj)라는 이름을 가진 사람이 있으면 "뭐야;"를, 없으면 "뭐야?"를 출력한다.

www.acmicpc.net

 

players = [input() for i in range(int(input()))]
if 'anj' in players:
    print('뭐야;')
else:
    print('뭐야?')
Comments