|
|
back to boardShow all messages Hide all messagesThis problem is the same as 1079 “Maximum” but with bigger limitations. Edited by author 10.05.2006 19:37 The problem is just added, so it may be easily modified. Let it be more than 10000 lines in input - so that the TL would be strict enough and my solution get TLE ;) Edited by author 11.05.2006 12:21 Burunduk1, please, resubmit your solution for N < 10^18. I will use your solution to generate new tests ;-) Edited by author 11.05.2006 15:31 This code will get WA with N < 10^18. Guess why? And for N < 10^17 ? Try to change "__int64" to "unsigned __int64". Please, give me my AC solution!!! (to sk1@hotbox.ru) I modified it (of course without backup) and now it doesn't pass second test. (or you've already added new tests?) PS: This ability (to view submitted solutions) is useful. Sent (+) Vladimir Yakovlev (USU) 11 May 2006 20:37 And now there is only one test I see... (know the same solution gets WA 1) The bug was in this: I calculated F[i] int 32-bit integer. Do you use any precalculations? My solution consists of only precalc. I calculate all different maximums on [1..x] where x is any integer between 1 and 10^18. I see... And why you haven't got AC? I have found O(logN) solution in one book. Very nice idea. 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 |
|
|