Search found 1 match

by limitedmage
Mon Aug 29, 2011 10:22 am
Forum: Volume 104 (10400-10499)
Topic: 10405 - Longest Common Subsequence
Replies: 103
Views: 44274

Re: 10405 - Longest Common Subsequence

I'm getting WA and I have no idea why. What could be wrong?

#include <cstdio>
#include <cstring>

char a[1010];
char b[1010];
int dyn[1010][1010];

int lcs() {
int ca = strlen(a);
int cb = strlen(b);

for (int i = 0; i < ca; i++) {
for (int j = 0; j < cb; j++) {
int curr = 0;
if (j > 0 ...

Go to advanced search