蚌埠住了

· · 个人记录

以下是我春测 T3 找初始点的代码:

double tmp=y[1];rt=1;
for(int i=2;i<=n;++i)if(y[i]>y[i-1]+eps)tmp=y[i],rt=i;

(rt 为初始点)

100 pts!!!!