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 |
怎么会TLE呢?#include<stdio.h> int main() { int total,all,t,n,i; scanf("%d%d",&t,&n); while(t) { total=0; all=n*3; for(i=1;i<=n;i++) { int tmp; scanf("%*s%d",&tmp); total+=tmp; } printf("%d\n",all-total); scanf("%d%d",&t,&n); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator