https://www.acmicpc.net/problem/2580


선 문제링크







이렇게 짜봤는데... 자꾸 다음 좌표 가져오는 부분에서 인덱스 아웃남 ㅠㅠ


아웃되기전에 출력해야되는데 뭐지