This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6657 循环优化问题



int main()
{
for (i = 1;i<=31999;i++) { F[i]=(Sig_mod_out[i-1]>0)?32767:-32767; D[i]=_ssub(Sig_qnt_os[i] , F[i]); S[i]=_sadd(S[i-1],D[i]); Sig_mod_out[i]=S[i]>0; }
}
F,S,D,Sig_mod_out初始化为空,Sig_qnt_os给定的

优化等级 -o2,--opt_for_speed 3

循环cycle为350000;如何进一步优化,希望cycle能在100000以内