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:向dalao们求助,总是TLE,求救

Posted by 442vs433 at 2017-12-02 18:06:15 on Problem 1002
In Reply To:向dalao们求助,总是TLE,求救 Posted by:2016202202 at 2016-11-05 15:36:47
调用了10W次gets()

调用了10W次strlen()

调用了10W~20W次strcmp()

然后写了个O(n^2), 也就是又调用了大约100W次strcmp(), 300W次strcpy()

肯定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