>>276 
http://kansai2channeler.hp.infoseek.co.jp/cgi-bin/joyful/img/2493.c
ちびっと変更。配列の先頭を比較に使っているから、
iの値を1にしたら一回だけ無駄な処理してた