Search found 5 matches

by Haomiao
Sat May 24, 2003 5:13 am
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 31188

how can i use lcm in 306

i always get TLE,too
help...
by Haomiao
Tue Nov 19, 2002 2:52 pm
Forum: Volume 104 (10400-10499)
Topic: 10405 - Longest Common Subsequence
Replies: 103
Views: 44060

if a string has nothing....

:( i've known the answer about it.
i've never thought about the condition of a string null....
by Haomiao
Tue Nov 19, 2002 11:33 am
Forum: Volume 104 (10400-10499)
Topic: 10405 - Longest Common Subsequence
Replies: 103
Views: 44060

10405:who can tell me why?wrong answer...impossible....

[cpp]
void readData()
{
while(infile>>a>>b)
{
outfile<<maxCommonString()<<endl;
}
}

int maxCommonString()
{
int i,j;
int m=a.size();
int n=b.size();
for(i=0;i<up;i++)
for(j=0;j<up;j++)
c [j]=0;
for(int i=1;i<=m;i++)
c [0]=0;
for(int i=1;i<=n;i++)
c[0] =0;
for(i=1;i<=m;i++)
for(j=1;j ...
by Haomiao
Sun Nov 17, 2002 3:04 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37165

something about 104...dynamic progamming?

who can prove the dynamic programming accuracy...
by Haomiao
Sun Nov 17, 2002 3:02 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116194

something about 102...

method...
who can tell me...
a bit of thanks...

Go to advanced search