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 1025. Democracy in Danger

can anybody tell me which sorting algo to apply? i am exceeding time limit
Re: can anybody tell me which sorting algo to apply? i am exceeding time limit
i have tried this with heap,bubble and insertion sort. Even i tried using sorted link list. then i tried this without any sorting with arrays. still my time limit is exceeding for test 1 . please give me some hints.
Re: can anybody tell me which sorting algo to apply? i am exceeding time limit
Posted by Alias (Alexander Prudaev) 8 Dec 2007 19:58
the timel limit is not because of sorting.
the bubble sort must work fast enough
Re: can anybody tell me which sorting algo to apply? i am exceeding time limit
Posted by Alias (Alexander Prudaev) 8 Dec 2007 20:03
you can show me your code and i will find your bug
twoalias@inbox.ru
Re: can anybody tell me which sorting algo to apply? i am exceeding time limit
i have omitted the bug of exceeding time limit. but now it says wrong answer. can anybody provide me some test cases please
?