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

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

Could anyone please suggest test #1. I am getting WA #1
Послано Anupam Ghosh, Wipro Technologies 30 окт 2011 18:18
I am trying to solve this using java.

Could anyone please suggest test #1. I am getting WA #1.
What will be the output if there is only 1 stone?
1
10000

I am getting answer:
10000

is this correct?

Again for n=20 I get this output

20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
0

Could you please confirm if this is correct?

regards
Anupam




Edited by author 30.10.2011 19:05
Re: Could anyone please suggest test #1. I am getting WA #1
Послано Anupam Ghosh, Wipro Technologies 3 ноя 2011 23:52
Hi All,
        The test cases shown above are correct. I just got AC now using brute force method. That is you need to try all combinations possible. Actual erroe was TLE but being shown as wa#1. Now pls try refrain from using character array or String in your algo. Because dealing with text makes your algo slow.

All the best.
regards
Anupam