ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1329. Galactic History

Kit (Vologda SPU) What about stack size? (+) [1] // Problem 1329. Galactic History 28 Aug 2005 16:05
Adding this simple fragment

procedure search2(d: longint);
begin
   if d <= 50000 then
      search2(d + 1);
end;
............
search2(0);

I turn Stack Overflow 29 into SO1.
Is it mean, that I must avoid recursion in this task? How much stack size?

Edited by author 30.08.2005 14:10