In fact, I think some of the problems will not be seen the world is also very good. Konjac Konjac Nature
With a T, the violence in the T range is calculated, and the T range is less approximate because it is relatively small.
#include <cstdio>#include<algorithm>#include<cstring>#include<cmath>using namespacestd;Const intMAXN =100000+Ten;Const intT = -;Const DoubleEPS = 1e-8;intM[maxn],n,l,r;DoubleF[maxn],a;intMain () {scanf ("%d%lf",&n,&a); for(intI=1; i<=n;i++) scanf ("%d",&M[i]); for(intI=1; i<=t;i++) {F[i]=0; R= (int) (Eps+floor (A *i)); for(intj=1; j<=r;j++) F[i] + =1.0*m[i]*m[j]/(I-j); } for(inti=t+1; i<=n;i++) {F[i]=0; R= (int) (Eps+floor (A *i)); L= (int) (Eps+floor (A * (i)T))) ; for(intj=l+1; j<=r;j++) F[i] + =1.0*m[i]*m[j]/(I-j); F[i]+=1.0*m[i]* (F[i-t]/m[i-t]) * (i-t-0.5*L)/(I-0.5*l); } for(intI=1; i<=n;i++) printf ("%.6lf\n", F[i]); return 0;}
bzoj1011: [HNOI2008] a distant planet