|
|
вернуться в форумI have got Crash (access violation) in test 20! Why? Is my source: Edited by author 11.02.2007 04:22 q<=100000!!! but r:array[1..10010]of longint Thenks, but I have Time limit exceeded in test №20 Try to think for a other solution for this problem. My new source but it not accepted: Edited by author 11.02.2007 04:22 But, and this source have time limit: Edited by author 11.02.2007 04:21 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]. |
|
|