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:dc3 0.9S 不知那些0.2S的大神用的是神马

Posted by EnigmaHuang at 2014-08-09 11:39:45 on Problem 3294
In Reply To:dc3 0.9S 不知那些0.2S的大神用的是神马 Posted by:nightzlh at 2013-05-03 10:53:29
就是倍增算法而已啊。我自己测过一下,在字符串拼接成一个数组的时候,如果每一次都是for (j=0;j<strlen(str[i]);j++)就会1.2S,strlen(str[i])拿出来就0.25S。这个错误大概很多人经常会犯吧……

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