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

Обсуждение задачи 1821. Биатлон

How many names should I print every time?
Послано liushujia 7 авг 2011 12:46
I don't know why the example output 3 names, why it is three?
Re: How many names should I print every time?
Послано hatred 8 авг 2011 02:58
cause:
wheh first contestant finished, he is the best,counter = 1;
every next finished (by finish time) compares with the best by running time - if he better, he becomes the best, and we increment counter;
finally, we print counter and list of all who became the best

in the sample:
first finished Zaytseva (at 21:38.2)
second finished Hauswald (at 21:21.0 + 30 sec from start = 21:51.0). She becomes the best;
next finished Boulygina (at 22:04.4 + 1 min = 23:04.4);
next Wilhelm (at 21:11.1 + 2m = 23:11.1). She becomes the best;
next Henkel (at 22:06.1 + 1m30s = 23:36.1);
last Johnson (at 22:05.8 +2:30 = 24:35.8).

Edited by author 08.08.2011 03:05
Re: How many names should I print every time?
Послано liushujia 8 авг 2011 12:56
Thank you.
Re: How many names should I print every time?
Послано [RSU_Tash]Nodirbek_Kuklamov 31 окт 2011 23:59
But why we must calculate finish times if there are given running times. And, Why Hauswald becames the best? Why Wilhelm?

Only way to understand this: if Wilhelm comes 1 (21:11.1), then Hauswald 2(21.21.0), and Zaytseva 3 (21.38.2) (by running time).

Sorry, if I miss error.

Edited by author 01.11.2011 00:00