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

怎么会TLE呢?

Posted by liao14 at 2007-02-04 17:58:12 on Problem 3117
#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:
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