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 wyu_feng at 2010-03-08 11:35:17 on Problem 2192
 for(i=0;i<=sa;i++)
		{
			for(j=0;j<=sb;j++)
			{
                if(i!=0&&d[i-1][j]==1)
				{
					if(a[i-1]==c[i+j-1])
						d[i][j]=1;
				}
				else if(j!=0&&d[i][j-1]==1)
				{
					if(b[j-1]==c[i+j-1])
						d[i][j]=1;
				}
			}
		}

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