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源于bug】

Posted by aFox at 2010-06-22 20:35:31 on Problem 1014 and last updated at 2010-06-22 20:40:31
In Reply To:Re:我的思路【为何会TLE?】 Posted by:topman3758 at 2010-06-15 18:49:48
> 输入的时候%60试一下
谢谢你的提示,问题已经解决:
bug无处不在
“半长为奇数:初始时,如果无奇数则败;搜索数为奇数,如果无奇数则当前搜索败。”代码上存在一个bug,已修复,时间为0ms。

------
//if ( total % 2 % 2 == 1 ) halfIsOdd = 1;	// fixed: 2010-6-22
if ( total / 2 % 2 == 1 ) halfIsOdd = 1;

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