Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
帮忙看下呀,怎么老WA啊void main()//2601 { int n,i; cin>>n; double a0,an,a1,ct=0.0; cin>>a0>>an; double *c=new double[n]; for(i=0;i<n;i++) { cin>>c[i]; ct=ct+c[i]; } a1=a0*0.5+an*0.5-ct; printf("%.2d\n",a1); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator