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 1290. Sabotage

use
Posted by Сайбель Алексей 29 Mar 2004 13:37
You can use simply sorting (for example QuickSort)
Re: use
Posted by Aspid 18 Oct 2005 03:08
It's shooting from a cannon on sparrows

Edited by author 18.10.2005 03:10
Re: use
Posted by SPIRiT 25 May 2006 19:49
In the worst case you will have to perform the O(N^2) number of operations as with insert sort. Therefore there is no need for that