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