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:终于过了!!总结一下超时的地方希望有所帮助。

Posted by ruinjoy at 2008-11-08 15:42:27 on Problem 1002
In Reply To:终于过了!!总结一下超时的地方希望有所帮助。 Posted by:20071121181 at 2008-11-04 13:42:44
> (1) 把英文转换成数时不用for而是多个if。
> (2) 把排序放在比较的前面,因为快排在大数处理时较快。此顺序把比较由二维变为一维。
> (3) 如果用转化成int类型的方法做的转化时尽量不用pow(),输出采用多次if。

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