Search found 2 matches

by wrcstar
Tue Oct 04, 2005 4:54 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 21580

103 need help!

I got a WA in 103 task why? Please help me.... program Task103; uses Strings; var boxes : array [1..30] of array [1..10] of integer; graph : array [1..30] of array [1..30] of integer; max_chain : array [1..30] of integer; current_chain: array [1..30] of integer; box_count,dimension,code,max_chain_le...
by wrcstar
Mon Oct 03, 2005 7:13 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29187

105 why WA?

This is my code. Why WA? program Task105; var skyline : array [0..10000] of integer; i,l,h,r : integer; blank : integer; begin for i:=0 to 10000 do skyline :=0; while EoF(input) do begin ReadLn(l,h,r); for i:= l to r-1 do if(skyline < h) then skyline :=h; end; blank:=0; for i:=1 to 10000 do if(skyli...

Go to advanced search