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

Re:TLE 哪位好心人帮忙看一下瓶颈在那里,该怎么改进?

Posted by ykt at 2005-08-31 10:19:25 on Problem 2503
In Reply To:Re:TLE 哪位好心人帮忙看一下瓶颈在那里,该怎么改进? Posted by:xemo at 2005-08-31 08:24:33
跳出while(1)是以下几句:
	english[0]=(char)getchar();
	if(english[0]=='\n')break;

即当一行以'\n'为第一个字符时(空行),终止循环。

> 看不出能跳出while(1)循环的条件。
> 你用hash都tle的话,我真不知道我当初用map怎么过的。

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