ttp://www.amy.hi-ho.ne.jp/~lepton/program/p2/prog238.html
これ関係ないかな?