백준 1316번 제목 : 그룹 단어 체커
# Python3 n = int(input()) cnt = n for _ in range(n): s = input() if list(s) != sorted(s, key=s.find): cnt -= 1 print(cnt)