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 |
Tips(1) pi为0时,添加1个字符到原字符串末尾。 pi不为0时,从原字符串最末尾的pi个字符里复制前ri个字符,然后添加到原字符串末尾。 (2) 其实不用考虑pi为0时,添加的字符具体是什么。 只要统计从某条指令开始,如果已生成的字符串清零,那么后面的那些pi>0指令是否还能执行即可。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator