|
|
back to boardWhy Crash (access violation) I have got Crash (access violation) in test 20! Why? Is my source: Edited by author 11.02.2007 04:22 Re: Why Crash (access violation) q<=100000!!! but r:array[1..10010]of longint Re: Why Crash (access violation) Thenks, but I have Time limit exceeded in test №20 Re: Why Crash (access violation) Posted by Lomir 6 Feb 2007 19:59 Try to think for a other solution for this problem. Re: Why Crash (access violation) My new source but it not accepted: Edited by author 11.02.2007 04:22 Re: Why Crash (access violation) But, and this source have time limit: Edited by author 11.02.2007 04:21 Re: Why Crash (access violation) Posted by Lomir 8 Feb 2007 01:23 Use this apparoach. Stoge at a[i] the sum from a[0] to a[i]. Then the answer between e, q will be just difference between sums: a[q] - a[e-1]. |
|
|