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:dc3 0.9S 不知那些0.2S的大神用的是神马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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator