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 |
枚举前面若干位为首个数字n的结尾,那么后续的数字肯定是n+1,n+2,n+3...一整个组成的,枚举这个数字即可一种特殊情况就是当数字分成两半时,前一半是一个数字n的结尾,后一半是数字n+1的开头,这个要特殊处理一下,利用到了kmp Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator