|
|
back to boardWA10 What's wrong, if the second test is 10^18? Re: WA10 the ones of 1 to 10^18 have over the range of int64 Re: WA10 The number of ones is less than number of floor. For me tha answer must be in Int64 Re: WA10 The answer is within Int64. So, try to find bug in your code or algorithm... Re: WA10 if you use line like this at TIMUS will a bug ... long long INF = 1e18; you should use long long INF = 1e9; INF *= INF; Re: WA10 Use unsigned __int64, might help. Also, if you use binary search, make sure that left+right does not overflow prior to /2 or >>1. Re: WA10 if you use line like this at TIMUS will a bug ... long long INF = 1e18; you should use long long INF = 1e9; INF *= INF; Thank you! Re: WA10 Posted by alp 23 Feb 2011 21:32 Try this test 12 Answer 19 (not 20) |
|
|