| ||||||||||
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 |
千万不要在循环中调用strlen()!!!!每次调用strlen时都会把字符串扫一遍,在循环中使用的话时间复杂度就会由O(n)上升到O(n^2)... 因为这个TLE了近十次 (T . T) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator