문제 접근(문제 분석 → 풀이 아이디어)
#문자열
코드를 풀이할 때 적었던 플로우가 있나요?
| 참고 : https://imzzan.tistory.com/146
n = int(input())
pattern = input().split("*")
length = len(pattern[0]) + len(pattern[1])
for _ in range(n):
file = input()
if length > len(file):
print("NE")
else:
if pattern[0] == file[:len(pattern[0])] and pattern[1] == file[-len(pattern[1]):]:
print("DA")
else:
print("NE")