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

Обсуждение задачи 1195. Крестики-нолики

TUP#1 - We hate PIBAS Can anyone give us the test? [8] // Задача 1195. Крестики-нолики 13 апр 2002 15:07
If there is a 2 'X' and 1 # in row,column or diagonal, that Crosses
wins.
Else If there is 2 combinations of 2 'O' and 1 '#' in row,column or
diagonal, that Ouths win
Else Draw.

Where is a bug?

[code deleted]

Edited by moderator 11.03.2006 17:02
TheBlaNK Re: Can anyone give us the test? [7] // Задача 1195. Крестики-нолики 16 апр 2002 16:05
this solution has bug (try to find)
i know coz i try to submit this algo but wa...
i don't know what to do
so i use search algorithm 555
> If there is a 2 'X' and 1 # in row,column or diagonal, that Crosses
> wins.
> Else If there is 2 combinations of 2 'O' and 1 '#' in row,column or
> diagonal, that Ouths win
> Else Draw.
>
> Where is a bug?
>
[code deleted]

Edited by moderator 11.03.2006 17:02
Maigo Akisame (maigoakisame@yahoo.com.cn) Do you WA on test #11? I'm using exactly the same algo, but WA. [6] // Задача 1195. Крестики-нолики 9 июл 2004 20:08
[code deleted]

Edited by moderator 11.03.2006 17:02
Try this test:
#X#
XOO
#OX
Your output :Draw
Correct output : Crosses win
Good luck!
Maigo Akisame (maigoakisame@yahoo.com.cn) But WA on test #10 this time. [4] // Задача 1195. Крестики-нолики 10 июл 2004 04:38
Added these before writeln('Draw'):

t:=0;
map[i]:='X';map[j]:='X';if win('X') then inc(t);
map[i]:='#';map[k]:='X';if win('X') then inc(t);
map[j]:='#';map[i]:='X';if win('X') then inc(t);
if t>=2 then winX;

But WA on test #10 this time.
Saturn Re: But WA on test #10 this time. [3] // Задача 1195. Крестики-нолики 10 июл 2004 12:22
After added these code you got WA this test:
##X
XOO
#OX
Your output:Crosses win
Correct output:Draw

Edited by author 10.07.2004 12:24
Saturn Re: But WA on test #10 this time. [1] // Задача 1195. Крестики-нолики 10 июл 2004 13:03
Your added code is wrong.

Edited by author 10.07.2004 20:34
Maigo Akisame (maigoakisame@yahoo.com.cn) Thanks. AC now. // Задача 1195. Крестики-нолики 10 июл 2004 20:17
Помпей Re: But WA on test #10 this time. // Задача 1195. Крестики-нолики 10 мар 2006 18:38


Edited by author 10.03.2006 20:18