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

直接在summit里写一A秒过

Posted by wocha at 2012-06-11 18:52:22 on Problem 2636
#include<stdio.h>
int main()
{
  int s,t,y,u,i;
  while(~scanf("%d",&t))
{
  while(t--)
{
   scanf("%d",&y);
 s=0-y+1; 
for(i=0;i<y;i++)
{
  scanf("%d",&u);
s+=u;
}
printf("%d\n",s);
}
}
}

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