Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

帮忙看下呀,怎么老WA啊

Posted by v123 at 2006-04-24 08:39:54 on Problem 2601
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator