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

Обсуждение задачи 1156. Два тура

Dart MirzMan C++ Edition (Mirzoyan Alexey, Rybinsk SAAT) If you have WA9...(+) [5] // Задача 1156. Два тура 3 июн 2007 02:21
Try this test:

2 1
1 3

answer:

2 3
1 4
Gnocuil Re: If you have WA9...(+) [3] // Задача 1156. Два тура 25 авг 2007 13:57
I have wa#9,but my program does well in your data
Nisarg Shah For those who got WA#3 with DFS and DP.... [1] // Задача 1156. Два тура 4 янв 2009 19:10
The case given here helped me.

Notice that when you are selecting whether white part is to be selected or black part, and pushing the result in a vector or queue, due to DP, last part gets inserted first. So you have to consider that first result in the vector/queue is for the last pair of partition.

May be this will help...
2 4
1 2
2 1
1 2
2 1
answer:
1 3
2 4
578067 Re: If you have WA9...(+) // Задача 1156. Два тура 14 окт 2015 11:04
Do you find the cause?
z-17 Re: If you have WA9...(+) // Задача 1156. Два тура 27 ноя 2013 21:00
answer
1 2
3 4
is correct too. But I have wa3