|
|
вернуться в форумTime limit exceeded on test 20 on java again and again!(( Послано Aydar 7 авг 2011 15:01 [code deleted] Edited by moderator 01.12.2019 21:45 Re: Time limit exceeded on test 20 on java again and again!(( Послано hatred 7 авг 2011 20:49 I dont know java, therefore I may be mistake. Try to use binary search. Re: Time limit exceeded on test 20 on java again and again!(( I also using Java, but have AC with 0.25 s ans ~4.5 Mb Try to use array of array of partial sums. P.S. sorry for my bad English Re: Time limit exceeded on test 20 on java again and again!(( Use Fenwick Tree :) Re: Time limit exceeded on test 20 on java again and again!(( No Fenwick Tree, just summ[y] - summ[x-1]. |
|
|