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

Обсуждение задачи 1512. Зиниум

I have one question!!
Послано PSV 2 апр 2007 01:15
As I understand by random selecting I cannt solve this problem, so I have searching a bit in internet some info to find algo of it - AC. But how could ACM participants check this problem? What another approach? Random --> while (true) subbmiting or what? Please tell me...
Re: I have one question!!
Послано Ilya Grebnov[Ivanovo SPU] 3 апр 2007 00:33
Random solution combined with a local collision minimization is acceptable.

Re: I have one question!!
Послано PSV 3 апр 2007 01:39
Are you sure? It's only for good luck - my random prog quikly works only for n = 200 at max. Maybe one more hint...
I use approach as in standart full search by verticals and O(1) - checking diagonals and horisontals and on every step use random.
Re: I have one question!!
Послано Ilya Grebnov[Ivanovo SPU] 4 апр 2007 23:22
Yes, the solution has the O(n) complexity. This solution is the the first approach with linear complexity for this problem.