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 godofwa2 at 2012-09-12 01:37:54 on Problem 4032 and last updated at 2012-09-12 02:03:31
#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
	int n,a,i=0;
	scanf("%d",&n);
	while(scanf("%d",&a)==1)
		i++;
	if((n-1)*2!=i)
		while(1);
	return 0;
}

这个会OLE
#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
	int n,a,i=0;
	scanf("%d",&n);
	while(scanf("%d",&a)==1)
		i++;
	if((n-1)*2!=i)
		while(1)
                   cout<<"shfushfu"<<endl;
	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