ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1510. Порядок

What's wrong with #6 test?
Послано Intelligent_Design 30 окт 2006 01:25
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. (-)
Послано Sandro (USU) 30 окт 2006 21:05
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. (-)
Послано Ilia S. Chm (Spb SU) 3 ноя 2006 02:55
AC solution: use qsort(A) and then output A[n/2]