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 1471. Distance in the Tree

who can give me test case #5? I got crash and I cannot figure out the reason...
Posted by Ludovic 19 Oct 2006 13:25
got AC by writing an explicitly recursive DFS -_-!!!
Posted by Ludovic 20 Oct 2006 12:06
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Posted by Christos Mantoulidis 24 Dec 2006 16:06
Me too. Does anyone know what's so special about #5?
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Posted by ConanKudo 15 Jul 2008 10:14


Edited by author 15.07.2008 10:16
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Posted by Vlad Trukhanovich 5 Oct 2011 16:53
I had this problem.
You have to write
#pragma comment(linker, "/STACK:1000000000")
in your program, if you use C++
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Posted by Vlad 28 Nov 2012 04:16
Indeed, I had the same problem but after I put this ( #pragma comment(linker, "/STACK:1000000000") ) it works.
Anyway, what does this do? Why does my program works if I write this?