레벨2 문제 실패
def solution(info, query):
answer = [] # 제출용
for q in query:
temp = list(q.split(' '))
temp = [i for i in temp if i != 'and']
cnt = 0
for person in info:
person = list(person.split())
for i in range(5):
if ( temp[i] == '-' ):
pass
elif ( i != 4 and temp[i] == person[i] ):
pass
elif ( i == 4 and int(temp[i]) <= int(person[i]) ):
cnt += 1
break
else:
break
answer.append(cnt)
return answer