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 babyrjw at 2011-06-01 12:05:53 on Problem 1002
In Reply To:怎么就超时了呢?? Posted by:xddx at 2011-05-30 20:33:34
估计有几方面的原因 
二重循环判断重复耗时,100000的数据量,一个二重循环就变成了1E10,况且还有好几个二重循环,这个有点夸张,最好换一种方式判断重复,标准模板库有些耗时比较隐蔽的,比方说Std.String.erase这个费时

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