Yeah, that's a known bug, and unfortunately it hasn't yet been fixed for many years...regis wrote:Ha! There's difference in problem description. If you look at website, they say input is between 1 and 999999 but if you check out pdf file the input is between 1 and 9999. I've downloaded pdf file and worked on it and that's why I get errors (I've assumed that max input is 9999 and in fact it is 999999). Where should I call this bug to? I've already written to them using "Contact us" panel, is it enough?
Basically, as judge's hardware was upgraded, the constraints of some problems (including this one) were raised, .html version and judge's input were adjusted (they're simple text files, so editing is easy), but nobody bothered fixing the .pdf versions (In the old version of judge's interface a few years ago we used to have a sticky note next to each problem, which mentioned the changes between .html and .pdf version, - that's why fixing the .ps and .pdf's was low priority back then)
I think memory limit is 32 Mb for (almost) every problem. Try to move the array out of the stack (make it global, static, or allocate dynamically with malloc), and then you shouldn't have any problems with its size.I can only declare size of table equal 200000