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源于bug】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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator