Search found 3 matches

by galkovsk
Wed Apr 20, 2005 3:33 pm
Forum: Volume 108 (10800-10899)
Topic: 10826 - Hot or Cold?
Replies: 26
Views: 15987

Hm. I can't find an explanation, why my program gets WA. Maybe, someone can verify my output? Everything, posted on this forum is as mine ouput.

Here is input:

Code: Select all

9
10
17
18
27
28
60
65
68
70
73
75
300
0
MY output:

Code: Select all

6
7
7
8
8
9
10
10
10
10
10
10
13
Thanks, for your help.
by galkovsk
Fri Apr 08, 2005 9:48 pm
Forum: Volume 107 (10700-10799)
Topic: 10755 - Garbage Heap
Replies: 20
Views: 14417


procedure readint64(var x : int64); var t : longint; begin read(t); x := t; end;
MAX_POSSIBLE := int64(20*20*20*5)*int64(maxlongint);
read(a, b, c);
for i := 0 to a-1 do
for j := 0 to b-1 do
for k := 0 to c-1 do
readint64(d[i, j, k]);

max2 := -MAX_POSSIBLE;
for x := 0 to a-1 do
for y ...
by galkovsk
Fri Apr 08, 2005 9:26 am
Forum: Volume 107 (10700-10799)
Topic: 10755 - Garbage Heap
Replies: 20
Views: 14417

Who can explain, why a stupid solution have WA:

choosing a lower left point, then, upper-right of our rectangular sub-parallelepiped.

Then, we counting a total sum of elements in it, and comparing it to the best achieved before.

My program gets WA in 0.000.

May be i don't understand the problem ...

Go to advanced search