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

Tips

Posted by aoxboxcox at 2013-02-18 12:04:58 on Problem 1369 and last updated at 2013-02-18 12:05:12
(1)
pi为0时,添加1个字符到原字符串末尾。
pi不为0时,从原字符串最末尾的pi个字符里复制前ri个字符,然后添加到原字符串末尾。
(2)
其实不用考虑pi为0时,添加的字符具体是什么。
只要统计从某条指令开始,如果已生成的字符串清零,那么后面的那些pi>0指令是否还能执行即可。

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