|
|
back to boardI wish I had a supercomputer ;) P.S. The problem seems to have only one test (-) Re: Have you received my letter? Do you use any precalculations? Re: Have you received my letter? My solution consists of only precalc. I calculate all different maximums on [1..x] where x is any integer between 1 and 10^18. Oh! You got AC! Where did you find supercomputer? Re: Oh! You got AC! Where did you find supercomputer? I have found O(logN) solution in one book. Very nice idea. Re: Oh! You got AC! Where did you find supercomputer? As far as I know solution of this problem in O(logN) can be found in Shens book... Edited by author 22.09.2006 00:57 Edited by author 22.09.2006 00:57 Edited by author 22.09.2006 02:01 |
|
|