|
|
вернуться в форумWhat's wrong with #6 test? Hey, I wrote this code, but it fails on the 6th test... What can be my error? [code deleted] Edited by moderator 29.12.2006 09:21 6th test is correct. Test your code more carefully. (-) Re: 6th test is correct. Test your code more carefully. (-) Послано mai7 1 ноя 2006 03:28 I don't know how I did it, I had same code and same was the trouble (WA 6)! I'd also taken into consideration the condition that more than half of numbers are equal. [code deleted] Edited by moderator 29.12.2006 09:21 Re: 6th test is correct. Test your code more carefully. (-) AC solution: use qsort(A) and then output A[n/2] |
|
|