Search found 7 matches

by sweko
Sun Mar 07, 2004 1:10 pm
Forum: Volume 104 (10400-10499)
Topic: 10464 - Big Big Real Numbers
Replies: 10
Views: 4289

I get all the test cases correct, but still get WA.
Any other special cases that may exist?
by sweko
Wed Jul 31, 2002 2:23 pm
Forum: Volume 1 (100-199)
Topic: 175 - Keywords
Replies: 13
Views: 3675

The name of your algo said it all. I guess you go in a recursion to deep for the Online Judge call stack.

BTW, you should use BBCode formating when sending source code to the forum, it's much more readable.

Also, we don't have to know your Judge ID :lol:
by sweko
Wed Jul 31, 2002 10:20 am
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20277

As far as i know, LongInt type is Borland Pascal specific, ant it's a signed 32 bit integer.
There is a Cardinal type in Borland's Object Pascal that is a unsigned 32 bit integer, but i'm not sure if it is supported by the Online Judge
by sweko
Mon Jul 29, 2002 1:54 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43540

How long can a Pascal string be?

I'm using a string to read in the characters. Using my compiler (Delphi 5) i can get it right using 1000000 characters, but i keep getting WA from the judge. Are Pascal strings limited to 255B (1 byte string lenght) or 2GB (2 byte string lenght - ANSI String)? Here's my Program [pascal] program P103...
by sweko
Mon Jul 29, 2002 12:42 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43540

How long can a Pascal string be?

I'm trying to solve 10324, using a string to read in the characters. Using my compiler (Delphi 5) i can get it right using 1000000 characters, but i keep getting WA from the judge. Are Pascal strings limited to 255B (1 byte string lenght) or 2GB (2 byte string lenght - ANSI String)? [pascal] program...
by sweko
Wed Jul 24, 2002 12:27 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22687

read the problem description carefully:
In this approach only one operation ( Flip ) is available and that is you can exchange two adjacent terms.
Tip: try your first version, minus the swaping of the list elements.

--
SWeko has spoken
by sweko
Thu Apr 25, 2002 3:29 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 30606

I constantly got TL despite any "optimisations" i made, until i just made a table[1..5000], and it worked on the first try

Go to advanced search