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

Обсуждение задачи 1654. Шифровка

Stuck on Test 6? Read Here!
Послано Davanish 12 июл 2012 00:26
For Time limit exceeded:
If you get time limit exceeded, it must mean that you're trying to modify the
input string (i.e. trying to delete i-th chars). Try creating a new OUTPUT string
without modifying the INPUT string.

Note: if you're using a high language such as java or C#, try using the StringBuilder
object to build your output string.

For Wrong Answer(WA):
If you get WA, try some of these test cases:

Input: "dddd"
Output: ""

Input: "ddddd"
Output: "d"

Input: "abba"
Output: ""

Input: "abbbbac"
Output: "c"

Input: "wliisddsmmleeddw"
Output: ""

Input: "avcbbffcv"
Output: "a"

Hope this helps.

Edited by author 12.07.2012 00:47
Re: Stuck on Test 6? Read Here!
Послано 6eJIa9IzZzTeHb 22 май 2014 23:21
Davanish писал(a) 12 июля 2012 00:26
Input: "abbbbac"
Output: "c"
Спасибо, помогло!
Re: Stuck on Test 6? Read Here!
Послано ইলহাম আল মুসাব্বির 30 июл 2015 22:42
Davanish писал(a) 12 июля 2012 00:26
For Time limit exceeded:
If you get time limit exceeded, it must mean that you're trying to modify the
input string (i.e. trying to delete i-th chars). Try creating a new OUTPUT string
without modifying the INPUT string.

Note: if you're using a high language such as java or C#, try using the StringBuilder
object to build your output string.

For Wrong Answer(WA):
If you get WA, try some of these test cases:

Input: "dddd"
Output: ""

Input: "ddddd"
Output: "d"

Input: "abba"
Output: ""

Input: "abbbbac"
Output: "c"

Input: "wliisddsmmleeddw"
Output: ""

Input: "avcbbffcv"
Output: "a"

Hope this helps.

Edited by author 12.07.2012 00:47

Thanks a lot...I could'n understand the problem statement first, now, reading ur comment I clearly understood the problem.
Re: Stuck on Test 6? Read Here!
Послано Luka 18 мар 2017 19:54
for me problem was that program was returning "axx" on "aaaxx"

Edited by author 18.03.2017 19:56
Re: Stuck on Test 6? Read Here!
Послано Desserg 20 ноя 2019 11:34
thanks!
Re: Stuck on Test 6? Read Here!
Послано diego.OCI.2019@gmail.com 8 апр 2020 23:22
Thanks