백준 1480 귀걸이 실버 5 https://www.acmicpc.net/problem/1380코드import sys num = 1 while True: no = -1 n = int(sys.stdin.readline()) if n == 0: break name_list = [0] * n for i in range(n): name_list[i] = sys.stdin.readline().rstrip() AB_list = [True] * n for k in range(2 * n - 1): name_AB = list(sys.stdin.readline().split()) result_name_AB = [] result_name_AB.append(int(name_AB[0])) result_name_AB.append..