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

Обсуждение задачи 1163. Chapaev

Now suppose there are only 1 red and 1 white left, and it's Red's turn. He'll certainly push the white off the board. In this case, who is considered to win?
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 16 окт 2004 18:48
A player loses, when he has to make his turn but cannot. So, in your example, Red makes their turn, and White cannot, so Red wins (-)
Послано Michael Rybak (accepted@ukr.net) 26 окт 2004 20:04
Then could anyone help me see why I get WA #3 with this prog?
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 27 окт 2004 04:45
I use binary representation of the chessboard.

Edited by moderator 28.10.2004 02:55
I may be mistaking, but... (+)
Послано Michael Rybak (accepted@ukr.net) 27 окт 2004 15:57
I believe you fill the white[] and red[] arrays in wrong order. When you're calculating white[p], you must have already had calculated red[p and go[i,j]], but it may happen that you hadn't.