あらら、式間違ってた・・・ × power[i] = ore[i]*ore[i]+oim[i]+oim[i] ○ power[i] = ore[i]*ore[i]+oim[i]*oim[i] 以降全部間違ってる・・・・(泣