Beakjoon&프로그래머스/파이썬
[백준/파이썬] 2857번 FBI
현장
2022. 4. 12. 15:18
-Code
agent_name = [input() for _ in range(5)]
result = []
for i in range(5):
if "FBI" in agent_name[i]:
result.append(i + 1)
if len(result) == 0:
print("HE GOT AWAY!")
else:
print(*result)