링크: http://acm.ajou.ac.kr:9041/JudgeOnline/showproblem?problem_id=1238