|
|
вернуться в форумFast solution? My AC is 0.8 seconds, what is the idea for 0.01sec solutions? Re: Fast solution? may be precalc? Re: Fast solution? Послано JD 24 сен 2015 06:01 Yea, precalc actually does work. I had an ineffecient solution which spent ~30 seconds and ~65 MB, so then i tried to precalc, but my initial variant didn't pass because it was 204kb of code, and the limit of 64kb is suddenly back (i don't recall it from before...) In the end, i finally managed to compress it down to 63kb, due to the fact that out of 100k values, certain four numbers were present in 80%+ cases. Re: Fast solution? Послано QProgS 31 янв 2016 19:30 java 0.156 | 45 000 КБ precalc) 100000 char's to 64K Re: Fast solution? Послано svr 31 янв 2016 21:27 theare is some big number ang long path from it to [1,100] by dividing we can start moving from any place of this path |
|
|