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 |
直接在summit里写一A秒过#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator