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 1149. Sinus Dances

write recursive functions in java, creating in each instance of running function new object to store string, and receive stupid memory limit exceeded )
Posted by messir 26 Aug 2010 08:39
Re: write recursive functions in java, creating in each instance of running function new object to store string, and receive stupid memory limit exceeded )
Posted by Vedernikoff Sergey (HSE: АОП) 26 Aug 2010 12:39
You will get the same verdict writing the same in other languages...
Re: write recursive functions in java, creating in each instance of running function new object to store string, and receive stupid memory limit exceeded )
Posted by MOPDOBOPOT (USU) 30 Nov 2010 19:50
I wrote same solution on pascal and crying now :(
MLE 4
How to fix the algorythm for using less memory?

Edited by author 30.11.2010 19:55
Re: write recursive functions in java, creating in each instance of running function new object to store string, and receive stupid memory limit exceeded )
Posted by KALO 1 Dec 2010 01:28
Only print strings, do not concatenate.
Re: write recursive functions in java, creating in each instance of running function new object to store string, and receive stupid memory limit exceeded )
Posted by MOPDOBOPOT (USU) 11 Dec 2010 17:57
Oh, thankyou, it's so EASY!
Now, i've got AC :)