Search found 9 matches

by Betalord
Thu Jan 01, 2004 1:42 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 43698

No one knows?? Any ideas?
by Betalord
Thu Dec 25, 2003 5:31 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 43698

Constantly getting compile error

I don't get it. I am constantly getting compile error, although
I don't see any problems with source code. My FreePascal
compiles it with no problem. I tried tu upload code through web page,
I also send it with email. This is the reply I get from judge:


Here are the compiler error messages:

Free ...
by Betalord
Sun Jun 22, 2003 7:21 pm
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

Outputs:

3020
2878
1579

Perhaps you could post portion of your code that calculates the answer?

Regards,
Betalord
by Betalord
Fri Jun 20, 2003 10:09 pm
Forum: Volume 2 (200-299)
Topic: 253 - Cube painting
Replies: 28
Views: 17231

I don't understand what is wrong with this algorithm.
Can anybody check the rotations?

program p253(input, output);

var
R1, R2, G1, G2, B1, B2: Byte;
i, j: Integer;
line: string;
cube1, cube2: array[1..6] of char;

Const

Rotations: array[1..24] of array[1..6] of Byte =
(
(1, 2, 3, 4, 5, 6 ...
by Betalord
Fri Jun 20, 2003 10:02 pm
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

You understand the problem OK, I am the one who made a mistake.
Numbers in your input are quite big, so they caused a problem in
my algorithm, because I am using Integers (max=32767) and when
multiplying, this numbers get over the limit.

Here are correct outputs:

2
102
100
1826
14497
4614
1007 ...
by Betalord
Thu Jun 19, 2003 10:14 pm
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

Outputs:

2
102
100
1826
17335
5520
1007

Don't know about any tricky inputs...

Regards,
Betalord
by Betalord
Mon May 12, 2003 10:34 pm
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

Oops.. I see where I made a mistake. For 2x2 I actually took 2x1 packets.
Thanks for your help!
by Betalord
Sat May 10, 2003 11:24 am
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

I tried to solve the last input myself, and I got this:

var p1, p2, p3, p4, p5, p6: Integer; // p1 is number of packets of size 1x1, p2 is 2x2 etc.


{ This one is for 6x6 }
Result := 100;

{ This one is for 5x5.
Because we can put 5 packets of size 2x2 and
one of size 1x1, we decrease the number ...
by Betalord
Fri May 09, 2003 7:12 pm
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 20983

I am having the same problem - I believe the program works OK,
but judge returns me WA. Can somebody provide some inputs/outputs?

These are some outputs my program returns:

INPUT:
0 0 4 0 0 1
7 5 1 0 0 0
11 12 13 14 15 16
10 10 10 10 10 10
5000 1400 300 200 100 100
0 0 0 0 0 0

OUTPUT:
2
1
49
33 ...

Go to advanced search