Skip to content

Commit 9e4bb7e

Browse files
committed
[#7] Feat: Add 그룹 단어 체커
1 parent 841a741 commit 9e4bb7e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

1316.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 그룹 단어 체커
2+
3+
N = int(input())
4+
answer = N
5+
6+
for _ in range(N):
7+
letters = []
8+
word = input()
9+
wordWithSpace = word + ' '
10+
index = 1
11+
for letter in word:
12+
if letter != wordWithSpace[index]:
13+
if letter in letters:
14+
answer -= 1
15+
break
16+
letters.append(letter)
17+
index += 1
18+
19+
print(answer)

0 commit comments

Comments
 (0)