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

Общий форум

Does anybody here wants to buy solution for TRIATHLON?
Послано I.J. Matrix 8 июн 2002 22:49
I can trade the solution for one of the most difficult problems on
TIMUS. I need any long arithmetic routines. Write an answer on this
webboard.
I can give you the solution of any problem I have solved without any trading :) (+)
Послано Michael_Rybak 9 июн 2002 00:12
I just want it to be useful for you... Maybe you would prefer an
idea, not a solution... Anyway, ask me. I'll help if I can.

GL
RM, can you give hint about problem Triathlon?
Послано raxtinhac 10 июн 2002 15:03
> I just want it to be useful for you... Maybe you would prefer an
> idea, not a solution... Anyway, ask me. I'll help if I can.
>
> GL
Here you are (+)
Послано Michael_Rybak 10 июн 2002 16:03
First, we may say that the length of first distance is 1 anyway
Now let's consider two other lengths to be x and y
Then we have:

A1x+B1y+C1>=0
A2x+B2y+C2>=0
...
Akx+Bky+Ck>=0

Which is the same as

x>=Q1y+P1,
...
x>=Qty+Pt,
x<=U1y+V1
...
x<=Uly+Vl

All you have to do is to determine whether there are such positive x
and y that all this inequivalences are hold.

I suppose that's enough for you to find the solution