Search found 7 matches

by Ivan Silva
Thu Jun 26, 2003 3:13 am
Forum: Volume 7 (700-799)
Topic: 736 - Lost in Space
Replies: 4
Views: 2398

afonsocsc, i think i have the same problem!!! since this is a multiple input problema and we got this frase in the problem text: * lines N+2 through end of file: strings 1 to N characters long, containing no blanks. What should we do? go on till end of file or wait for the next input? how do we know...
by Ivan Silva
Sun Jun 15, 2003 10:31 pm
Forum: Volume 102 (10200-10299)
Topic: 10234 - Frequent Substrings
Replies: 25
Views: 8969

This post is just to get one more post... i'm joking of course, please just a little help here, i tryed all inputs in the board and i still get WA!!!
by Ivan Silva
Thu Jun 05, 2003 11:40 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21807

Ok i got it accepted!!!

The problem was those dam blank lines......
People deal with those blank like as if they were normal input, that will lead you to the right answer.

-Ivan
by Ivan Silva
Thu Jun 05, 2003 9:27 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 21807

I got all u'r test cases right, i check all cases talked in the board...

What should i print if a blank line comes in the input??

maybe if it wasnt to borring put some more input and output cases... maybe i'll find my error there.

Thx.
-Ivan
by Ivan Silva
Sat May 31, 2003 3:08 pm
Forum: Volume 102 (10200-10299)
Topic: 10285 - Longest Run on a Snowboard
Replies: 10
Views: 6609

Try to use something like:

void dig(int len,int i,int j)
{

....

if (i-1>=0 && a[i-1][j]<a[j]) dig (len+1,i-1,j); // Up

.....
}

Good luck :)
-Ivan
by Ivan Silva
Fri May 30, 2003 12:40 am
Forum: Volume 102 (10200-10299)
Topic: 10234 - Frequent Substrings
Replies: 25
Views: 8969

Any one could post some input and output for this problem, i'm always getting WA!!! and i really have no idea what is the problem :)

-Ivan
by Ivan Silva
Tue Jun 11, 2002 6:32 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21907

So if there is a blank line in the input what should we print?
a \n
or just ingore that input?

Cause my arrays size are 400 and my program is ignoring the blank lines...
but i still got WA, and of course the output is correct for the given input :)

-Ivan

Go to advanced search