![:cry:](./images/smilies/icon_cry.gif)
![:cry:](./images/smilies/icon_cry.gif)
![:cry:](./images/smilies/icon_cry.gif)
I got AC for this problem in 2.107 S. I saw the others got AC in less than 1 second. Could someone tell me how to make this problem faster ?
First I sort the marbles using quicksort, and search that with binary search.
Moderator: Board moderators
Please do not ask people to post code that is already accepted by the UVA OJ. It makes no sense actually. Here we'd like to share our ideas publicly, but not our codes. You can always ask for code in a private message, though.suctg wrote:Please help me by posting your code
What does it mean? is the maximum size of the number array 10000?Be assured, none of the input numbers are greater than 10000 and none of them are negative.