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

Обсуждение задачи 1062. Триатлон

This question looks easy. but i got WA, Help!
Послано abc 11 янв 2003 06:47
My algo is as follows:
1.for any contestant i:
2.     if(there is a contestant j whose three speeds all equal to i )
3.     then   i and j are both sure losers;
4.     else if(the three speeds of j are no less than i)
5.     then   i is a sure loser;
6.     else if(the three speeds of j are no more than i)
7.     then   j is a sure loser;
8.for any contestant i:
9.     if(i is a sure loser) writeln(No);
10.    else writeln(Yes);
Of course no :) (-)
Послано Miguel Angel 20 янв 2003 02:32
> My algo is as follows:
> 1.for any contestant i:
> 2.     if(there is a contestant j whose three speeds all equal to
i )
> 3.     then   i and j are both sure losers;
> 4.     else if(the three speeds of j are no less than i)
> 5.     then   i is a sure loser;
> 6.     else if(the three speeds of j are no more than i)
> 7.     then   j is a sure loser;
> 8.for any contestant i:
> 9.     if(i is a sure loser) writeln(No);
> 10.    else writeln(Yes);
>
What about this test?
Послано currently unnamed... 1 ноя 2005 09:48
4
10000 10000 1
10000 1 10000
1 10000 10000
2 2 2

the fourth contestant is not a "sure loser" but always lose...