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

Обсуждение задачи 1005. Куча камней

Saimon ADMIN READ IT PLEASE. WRONG AC [2] // Задача 1005. Куча камней 25 ноя 2011 00:13
Hm...Very bad. My programm got AC when i add this code in end program
    if(ncount==5) if(answer==2) answer=0;(ncount-count of stone)
ADMIN READ IT PLEASE
pls repair test!!! add this test for example
6
1 4 5 6 7 9
right answer is 0 {(9+7) and (1+4+5+6)}.
My program failed this test))
thanks for watching/

Edited by author 25.11.2011 00:45

Edited by author 25.11.2011 00:46
Frankie Re: ADMIN READ IT PLEASE. WRONG AC [1] // Задача 1005. Куча камней 26 ноя 2011 08:43
I think these tests are to accept the greedy solution; u know, the "beginners" tag is here for a reason
Valdemar Re: ADMIN READ IT PLEASE. WRONG AC // Задача 1005. Куча камней 20 дек 2011 03:35
maybe it's right, but problem is very interesting and i want to have right algorithm :)