>>277
これ使えば大概の問題は解ける(その問題も解けた)
http://www.ic-net.or.jp/home/takaken/so/soko/index.html