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

Обсуждение задачи 1122. Игра

I can't imagine how does this problem can be solved for 0.05c!!!!!!!!!!!!!!Can anybody explain me this thing????????????????????????Please Help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Послано Bedny Yuri (bedny@rain.ifmo.ru) 1 мар 2002 23:41
So simply....
Послано Algorist 2 мар 2002 01:07
Hey, haven't you solved such probems? They are so popular...

Imagine the following
000
000
000

If i invert zeroes like this
010
111
010
for example, making the same turn (I mean inverting the same zeroes)
will lead to returing to
000
000
000
And you certainly gain nothing out of that. So, each turn should be
done only(or at most) once.
So, you just try all possibillities-> they are 2^16(for each sqaure
you have two possblities-> to perform the operation if it is a
centre, or not to perform. The squares are 16, so you have 2*2*2*...*2
(16 times) ) if I am not much mistaken(I've Accepted that problem
long time ago).

Good luck!
I think , it's the difference in optimization of inverting function. or more? i don't really know...
Послано MadPsyentist/Sam 2 мар 2002 06:25
> Hey, haven't you solved such probems? They are so popular...
>
> Imagine the following
> 000
> 000
> 000
>
> If i invert zeroes like this
> 010
> 111
> 010
> for example, making the same turn (I mean inverting the same zeroes)
> will lead to returing to
> 000
> 000
> 000
> And you certainly gain nothing out of that. So, each turn should be
> done only(or at most) once.
> So, you just try all possibillities-> they are 2^16(for each sqaure
> you have two possblities-> to perform the operation if it is a
> centre, or not to perform. The squares are 16, so you have
2*2*2*...*2
> (16 times) ) if I am not much mistaken(I've Accepted that problem
> long time ago).
>
> Good luck!
but now, i think it's not...
Послано MadPsyentist/Sam 2 мар 2002 06:37
look at the authors who solves this problem within 0.1s time. they also
use less than 100K memory!

"How could you do that!?"

I too, really interest in it.
i solved this prob. in just 0.03 !!! but Cleverkid did it in 0.02!!!
Послано Locomotive 28 янв 2003 03:06
>