[python_파이썬]백준_1181번_단어 정렬_풀이
공부하는허딩크 : https://www.youtube.com/live/MRweSf80fmw?feature=shared한참을 고민했음.조건이 2가지 (길이가 짧은 것부터, 길이가 같으면 사전순으로) import sysinput = sys.stdin.readlineN = int(input())A = []for _ in range(N): temp = input().strip() if temp in A: continue else: A.append(temp)for i in range(len(A)): for j in range(len(A) - i -1): if len(A[j]) > len(A[j + 1]): A[j], A[j + 1] =..
2024.05.02