N = int(input()) list_2 = [] for _ in range(N): list_2.append(list(map(int,input().split()))) # list_2= [[2, 3, 1, 7, 3], [4, 1, 9, 6, 8], [5, 5, 2, 6, 4], [6, 5, 2, 6, 7], [8, 4, 2, 2, 2],[5, 5, 2, 4, 4]] # N=len(list_2) student=[] # 학생별로 겹치는 학생을 저장 for i in range(N): student.append([]*5) tmp1=[] # i,j => j,i for i in range(5): tmp2 = [] for j in range(N): tmp2.append(list_2[j][i]) tmp1.append(..