Search found 1 match

by mrxy56
Sun Aug 11, 2013 6:55 pm
Forum: Volume 101 (10100-10199)
Topic: 10192 - Vacation
Replies: 58
Views: 23939

HELP!!!10192 Vacation------WHY TLE!!!

It's a LCS problem,I think I am absolutely right.But why TLE!!!Please help me!Thank you very much!!!
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int d[1010][1010];
char a[1010],b[1010];
int dp(int i,int j){
if(i<0||j<0) return 0;
int &ans=d [j];
if(ans>0)return ans ...

Go to advanced search