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 1371. Cargo Agency

WA #21 Why?
Posted by Vedernikoff Sergey 10 Sep 2005 22:41
Re: WA #21 Why?
Posted by ^^^ I'm going UP ^^^ 10 Sep 2005 23:53
Because your solution is wrong!
Probably arithmetic overflow or stack overflow.
Re: WA #21 Why?
Posted by Vedernikoff Sergey 11 Sep 2005 13:29
But why crash (stack_overflow)? My program shouldn't use so much memory!

[code deleted]

Edited by moderator 11.07.2006 23:07
Re: WA #21 Why?
Posted by Ilya Rasenstein (Lyceum #40) 11 Sep 2005 15:35
You should manage your stack manually.
Re: WA #21 Why?
Posted by Trần Quang Chung 11 Jul 2006 21:12
if n = 1 -> res/(n-1) = res / 0??????????
Re: WA #21 Why?
Posted by kirill 2 Aug 2011 11:39
No, from condition 2 <= N <= 50000