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

枚举前面若干位为首个数字n的结尾,那么后续的数字肯定是n+1,n+2,n+3...一整个组成的,枚举这个数字即可

Posted by yygy at 2023-05-11 17:05:17 on Problem 1863
一种特殊情况就是当数字分成两半时,前一半是一个数字n的结尾,后一半是数字n+1的开头,这个要特殊处理一下,利用到了kmp

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