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 |
Re:怎么就超时了呢??In Reply To:怎么就超时了呢?? Posted by:xddx at 2011-05-30 20:33:34 估计有几方面的原因 二重循环判断重复耗时,100000的数据量,一个二重循环就变成了1E10,况且还有好几个二重循环,这个有点夸张,最好换一种方式判断重复,标准模板库有些耗时比较隐蔽的,比方说Std.String.erase这个费时 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator