> 191
int zmax = 0 ;
int ans = 0 ;
for (int c = 10; c <= 500; c += 5) {
 int z = 公式(c);
 if (zmax < z) {
  zmax = z;
  ans = c;
 }
}

intでいいのかfloatやdoubleが必要なのかは氏らね。
画面に出すともファイルに吐くとも書いてないんで出力の事も氏らね。