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

Обсуждение задачи 1606. Слалом

obtuseSword How many test cases are there? [8] // Задача 1606. Слалом 7 мар 2008 09:50
I've got TLE at Test#10,so I want to know how many test cases there are.
If there are only near 10 cases,I'll improve on my program,or else,I'll give it up.
Who can help me?
Vedernikoff Sergey Re: How many test cases are there? [7] // Задача 1606. Слалом 7 мар 2008 16:22
I suppose there are much more than 10 testcases. My solution works about 0.1 sec on any test, so timelimit is quite enough. Try to create quicker algo...
obtuseSword Re: How many test cases are there? [6] // Задача 1606. Слалом 11 мар 2008 13:12
Thank you.
I've found that greedy algorithm can solve this problem,thus no longer need dynamic progrmming.
And I've got AC.
igaoxiang Re: How many test cases are there? [5] // Задача 1606. Слалом 13 мар 2008 16:58
Can you tell me your greedy algorithm?
Chmel_Tolstiy Re: How many test cases are there? [4] // Задача 1606. Слалом 13 мар 2008 19:21
Greedy? Please tell us your idea.
svr Re: How many test cases are there? [3] // Задача 1606. Слалом 13 мар 2008 19:52
I think that "greedy" here is terminologic mismatch.
Right termin is "simple constructive" algo.
Candidat to optimum easy to find simply  tracing
trajectory of all points sorted by y- coordinate.
Vedernikoff Sergey Re: How many test cases are there? [2] // Задача 1606. Слалом 14 мар 2008 17:29
Not mismatch at all. The simplest way to solve the problem is to find a greedy algo.
Dart MirzMan C++ Edition (Mirzoyan Alexey, Rybinsk SAAT) Re: to find a greedy algo [1] // Задача 1606. Слалом 20 мар 2008 14:25
I solved it with DP+date structure like "the stars" task.
0.578 sec, 44 896 КB...

How to solve it with greedy algo?
Nguyen Dinh Tu (DHSP) Re: to find a greedy algo // Задача 1606. Слалом 19 апр 2008 00:28
Data structure i used is Binary Index Tree