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

几点参考意见,的确是很好的DP练习题目

Posted by fangyixiang at 2008-09-06 12:02:28 on Problem 2192
for(i=1;i<=lena;i++)
for(j=1;j<=lenb;j++)
{
    if(f[i-1][j]&&a[i]==c[i+j]||f[i][j-1]&&b[j]==c[i+j])    
        f[i][j]=true;
    else                                 
        f[i][j]=false;
}
注意初始化操作.
可惜我也是参考别人的意见才作出来的啊,何时才能学懂DP啊

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