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

What about stack size? (+)
Posted by Kit (Vologda SPU) 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
Is it so difficult to say how large stack? IMHO, it should be said in the FAQ or in a problem definition.
Posted by Kit (Vologda SPU) 30 Aug 2005 14:09