문제링크 : https://www.acmicpc.net/problem/17299 제출링크 : https://www.acmicpc.net/source/19772113 CPP 소스 : https://github.com/skysign/WSAPT/blob/master/BOJ/17299%EB%B2%88%20%EC%98%A4%EB%93%B1%ED%81%B0%EC%88%98/17299%EB%B2%88%20%EC%98%A4%EB%93%B1%ED%81%B0%EC%88%98.cpp