[백준] 1141번 접두사 - Python
백준 실버3 1141번 접두사 - Python https://www.acmicpc.net/problem/1141 1141번: 접두사 접두사X 집합이란 집합의 어떤 한 단어가, 다른 단어의 접두어가 되지 않는 집합이다. 예를 들어, {hello}, {hello, goodbye, giant, hi}, 비어있는 집합은 모두 접두사X 집합이다. 하지만, {hello, hell}, {giant, www.acmicpc.net 코드 맞았습니다가 뜬 코드입니다. - 메모리 31256KB | 시간 40ms | 코드 길이 355B import sys input = sys.stdin.readline N = int(input().rstrip()) word = list() for i in range(N): word.append..
2023. 2. 20.