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

解题思路:

Posted by yuanyirui at 2007-02-13 15:39:14 on Problem 1159
DP
如果当前状态首尾字符相等,则 
    当前状态 = 去掉首尾字符的状态 ;
否则
    当前状态 = Min(去掉最前面一个字符的状态 ,去掉最后面一个字符的状态)+ 1; 
      A  b  3  b  d
   0  0  0  0  0  0
A  0  0  1  2  1  2
b  0  0  0  1  0  1
3  0  0  0  0  1  2
b  0  0  0  0  0  1
d  0  0  0  0  0  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