풀이 def solution(n, lost, reserve): answer = 0 student = [] for i in range(n): student.append(0) for i in lost: student[i-1] -= 1 for i in reserve: student[i-1] += 1 for i in range(0, len(student)): if student[i] == 1: if i -1 >= 0: if student[i-1] == -1: student[i-1] += 1 student[i] -= 1 if student[i] == 1: if i + 1 < len(student): if student[i+1] == -1: student[i+1] += 1 student[i] -= 1 for stu..