Files
CodeTest/baekjoon/그룹_단어_체커/solution_6684756.py
2024-08-29 16:24:06 +09:00

6 lines
135 B
Python

S = 0
for _ in range(int(input())) :
string = input()
if list(string) == sorted(string,key=string.find) :
S+=1
print(S)