http://poj.org/problem?id=1186
http://poj.org/problem?id=1745
Merge branch 'master' of https://github.com/ototsuyume/poj-solution