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 |
这题用short开二维数组也要40000K多,用滚动数组就256K的确是很好的东东~i f(str1[i]==str2[j]) Max[i%2][j]=Max[(i-1)%2][(j-1)]+1; else if(Max[(i-1)%2][j]>Max[i%2][(j-1)]) Max[i%2][j]=Max[(i-1)%2][j]; else Max[i%2][j]=Max[i%2][(j-1)]; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator