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 1510. Order

С++ prog takes 25 lines of source code
Posted by Valentin Pimenov 27 Jul 2012 20:12
uses std::nth_element
Re: С++ prog takes 25 lines of source code
Posted by Andrew Sboev 27 Jul 2012 21:29
My solution takes 15 lines of code :) And it is possible to do fewer.
Re: С++ prog takes 25 lines of source code
Posted by Valentin Pimenov 30 Jul 2012 18:02
Did you use Linear time majority vote algorithm?