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 1238. Folding

Error in examples!
Posted by Miladin 1 Aug 2011 05:00
In the text of the problem there is AAAAAAAAAABABABCCD is 10(A)2(BA)B2(C)D , where CC is translated to 2(C), but in both examples this rule is not obeyed: in the first example CC is NOT translated to 2(C) , and same with EE in second example. And in text there is "where X is a decimal representation of an integer number greater than 1". Maybe i'm missing something?

EDIT: And also i have found error in example in the text of the problem: AAAAAAAAAABABABCCD is 10(A)2(BA)B2(C)D; sequence ABABABCCD should be translated to 3(AB)2(C)D.

Edited by author 01.08.2011 05:07

Edited by author 01.08.2011 05:09
Re: Error in examples!
There is no errors: any representation of AAAAAAAAAABABABCCD - as 10(A)2(BA)B2(C)D or as AAAAA5(A)B2(AB)CCD or in any other possible way is a folded sequance. HOWEVER, among all these possible sequences you are to choose the shortest one. That is the problem.

Edited by author 01.08.2011 12:08
Re: Error in examples!
Posted by Miladin 1 Aug 2011 16:02
My mistake, got it! Thanks!