ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1654. Cipher Message

Stuck on Test 6? Read Here!
Posted by Davanish 12 Jul 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!
Posted by 6eJIa9IzZzTeHb 22 May 2014 23:21
Davanish wrote 12 July 2012 00:26
Input: "abbbbac"
Output: "c"
Спасибо, помогло!
Re: Stuck on Test 6? Read Here!
Davanish wrote 12 July 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!
Posted by Luka 18 Mar 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!
Posted by Desserg 20 Nov 2019 11:34
thanks!
Re: Stuck on Test 6? Read Here!
Posted by diego.OCI.2019@gmail.com 8 Apr 2020 23:22
Thanks