Search found 4 matches

by infancy
Fri Apr 08, 2005 5:41 am
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 21443

i fixed the problem thanks
by infancy
Thu Apr 07, 2005 10:28 am
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 21443

compile error: 729

i complied it with vc++6.0 and g++, it was right, but when i submitted it, i got complie error.why?

#include <iostream>
#include <vector>

using namespace std;

void print_vector(vector<int> str)
{
while(!str.empty())
{
cout << str.back();
str.pop_back();
}
cout << endl;

}

void ...
by infancy
Tue Apr 05, 2005 1:01 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 21443

729 why complie error

i complied it with vc++6.0 and g++, it was right, but when i submitted it, i got complie error.why?

#include <iostream>
#include <vector>

using namespace std;

void print_vector(vector<int> str)
{
while(!str.empty())
{
cout << str.back();
str.pop_back();
}
cout << endl;

}

void generate ...
by infancy
Thu Oct 09, 2003 2:11 pm
Forum: Volume 101 (10100-10199)
Topic: 10192 - Vacation
Replies: 58
Views: 23957

10192 help plz, Is norm dp enough for this problem??

I used norm dp to try to solve this problem, but I find it difficult to deal with the case like this:
aaab
abaaa
since in my program, I find the lcs first, then deal with the duplicated ones. so, in the case above, I got 1 instead of 2. I guess in this problem we should get 2 as the answer.
so would ...

Go to advanced search