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

Обсуждение задачи 1025. Демократия в опасности

Wrong Answer: test #1
Послано Vyacheslav Dashivets 21 дек 2006 01:08
I just don't get the mistake I made:

I assigned an input file;
Opened it for reading;
Read the K;
Went to the next line of file and read the array;
Closed input file;
Sorted the array with the bubble method;
Went through half of it {(k div 2) +1};
Acquired the minimum number;
Appended the input file;
Wrote Line into it;
Wrote donw the minimum number into the input file;
Closed the input file;
And that's it.

Somebody, please help. I really don't understand a mistake I've made.

Edited by author 21.12.2006 01:10
Re: Wrong Answer: test #1
Послано egor-belikov 28 сен 2010 00:36
Don't assign files