| ||||||||||
| 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 | |||||||||
第一次完全自己用DP过了这里,开心一下,呵呵 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator