Can anyone tell me what's the problem with my code? Getting WA though It passes all the sample I/O given in the problem and the ones you guys gave in this post.
I am trying since last 3 days after this single problem....please please help me out!!! Why I'm getting WA?? :( :(
Here's my Code:
int n,m; int lis[605][605]; int Sequence[605][605]; int LIS_LIS() { for(int a=0;a<n;a++) { for(int b=0;b<m-1;b++) { int cn=1; for(int c=b;c<m-1;c++) { if ...