Baekjoon 백준 python 1316 그룹 단어 체커
https://www.acmicpc.net/problem/1316 N = int(input())count = 0for _ in range(N): S = input() l = [-1] * 26 for idx in range(0, len(S)): if l[(ord(S[idx]) - 97)] == -1: l[(ord(S[idx]) - 97)] = idx else: if l[(ord(S[idx]) - 97)] == idx - 1: l[(ord(S[idx]) - 97)] = idx else: count += 1 breakprint(N ..
C, C++/Baekjoon Online Judge
2024. 8. 15. 23:40
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com