Search found 10 matches

by Sebasti
Sat Aug 02, 2003 4:45 am
Forum: Volume 8 (800-899)
Topic: 848 - Fmt
Replies: 16
Views: 11994

848 - Fmt

Hi,

Anyone have test cases of this problem?
What is the output when the line starts with blanks and have a word of size 73?

Bye,
Sebastiao.
by Sebasti
Fri Aug 01, 2003 9:38 am
Forum: Volume 8 (800-899)
Topic: 843 - Crypt Kicker
Replies: 51
Views: 25009

Hi,

I have a TLE too, and solve it deleting of my word's list repeated words.
Be careful with blank lines too...

Best regards,

Sebasti
by Sebasti
Thu Jul 31, 2003 8:17 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 51566

i forget to say too that in the commands L, H and K, x1 may be greater than x2 and y1 greater than y2.

bye
by Sebasti
Thu Jul 31, 2003 8:11 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 51566

Hi, There is an error in your output. When you create an empty table or clear the current table, you must fill it with 'O' (capital letter O), not 0 (digit 0). Furthermore, the other topic about this problem report WA's when they used a recursive function to fill the table with a color... Best regar...
by Sebasti
Wed Jul 02, 2003 7:01 am
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 34156

The problem with the input of this problem is in the end of each input. If there are spaces after the letter on the last line of each input and you read a char to skip to the next line, you will read a space, not a '\n'.

Then, to read the character like a string avoid this error.

Bye
by Sebasti
Thu May 15, 2003 5:36 am
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 22672

Hi htl,

I has the same error because the problem description that is not good.
Change the line:
[cpp]temp[shuffle[k-1][z]-1]=card[z];[/cpp]
by
[cpp]temp[z]=card[shuffle[k-1][z]-1];[/cpp]

Best regards,

Sebasti
by Sebasti
Tue May 13, 2003 9:51 pm
Forum: Volume 104 (10400-10499)
Topic: 10473 - Simple Base Conversion
Replies: 46
Views: 13215

Hi, First, your program is too complex. Look the usage of functions like strtol, atoi and the iosflags of C++, and you will see that the size of your code will decrease. :) Second, when the input begin with 0 and the other caracter is not x, you must no print 0, because the number could be a decimal...
by Sebasti
Mon May 12, 2003 2:50 am
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 30822

Hi,

Change the limits of your while loops to sqrt(in1)+1 and sqrt(in2)+1.

If the TLE still, try precalc the prime numbers and put them on a big array
(sieve of eratostenes).

Bye.
by Sebasti
Wed Apr 16, 2003 9:09 pm
Forum: C++
Topic: function's return value
Replies: 4
Views: 2247

Hi,

i don't know how to do using scanf, but using cin is:

if( cin.get() != '\n' ){
cin.unget();
cin >> number;
}

The standard input has a buffer, where you can go ahead and come back with the functions get and unget.

Bye
by Sebasti
Tue Apr 15, 2003 10:23 pm
Forum: Volume 8 (800-899)
Topic: 812 - Trade on Verweggistan
Replies: 10
Views: 8525

Hi,

I've got a WA, and i don't know what's wrong. :(
Do you have anothers test cases?
What should be the output to this case:

1
3 11 12 13

anyone can help me?

Go to advanced search