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 |
o(n)的不会超啊In Reply To:为什么总是超时??? Posted by:dingdongsheng at 2008-10-09 15:11:19 lenb=strlen(b); lena=strlen(a); for(i=cur=0;i<len;i++)if(b[i]==a[cur])cur++; printf("%s",cur==lena?"Yes":"No"); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator