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:纠结死了,纪念下……TLE的注意下……

Posted by 10190111019011 at 2014-12-28 10:26:40 on Problem 1141
In Reply To:纠结死了,纪念下……TLE的注意下…… Posted by:136930775 at 2012-09-13 22:50:55
> 开始用的string的+号连接,g++TLE,c++RE
> 换成string的insert和append,依然g++TLE,c++RE
> 最后改成用char的strcat居然就过了,47ms虽然也没有很快,可是用上面那些让我TLE了16次,改掉居然就过了……是string就有那么慢,还是写的太挫了……
> 目测不是典型错误,还是给TLE点建议吧……

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