ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1090. In the Army Now

what's the approach to get AC in 0.015s?
Posted by AlainDelon 1 Jul 2008 19:29
I have tried using bucket search( N*sqrt(N)) and segment tree based search( N*log(N)), but still only get AC in 0.1s

Anyone can shed some light on this? I have seen someone mentioned mergsort, is this the point?
Re: what's the approach to get AC in 0.015s?
Posted by AlainDelon 2 Jul 2008 14:14
Well, I've also tried merge sort approach(use iterative mergesort instead of recursive), but still only get AC in 0.078s

what's the point to boost it into 0.015s?

Anyone can shed some light?

Thanks a lot!