Search found 3 matches

by pdiaz
Sun May 05, 2002 10:15 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 10969

I think so, because of the recursive nature of calc_val() for example, the following spreadsheet: 1 3 3 1 2 3 =A3 0 2 =A1 2 =A2+A3 gives the correct result, that is 1 2 3 1 0 2 1 2 2 Cheers (and thanks for your help!) Pedro P.S.: BTW, I believe that your example is not correct, =B2+A2 references to ...
by pdiaz
Sun May 05, 2002 2:29 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 10969

Try using dynamic memory allocation. You can use static array, but in that case use onedimensional. As far as I remeber, there were no more than 100000 cells. The reason, why you can't use twodimensional static array, is... well you'd have to declare a 100000x100000 matrix -- and that's a bit too m...
by pdiaz
Sat May 04, 2002 11:48 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 10969

Problem 196 (spreadsheet)

Hi all, I'm trying to solve the spreadsheet problem (196). From my point of view, the problem itself is quite simple, and it seems I have it almost working (same results for the sample input, and other tests I performed seemed OK). In either case I'm getting runtime errors from the judge (invalid me...

Go to advanced search