http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=1082&sca=3020https://www.acmicpc.net/problem/2493