NicuBodea's blog

By NicuBodea, 12 years ago, In English

On 95A ( http://codeforces.net/contest/95/problem/A ), third example, the final answer is abCacba, but why not abCccba ? (because as I can see, you must change every forbidden string in the lucky letter).

I'm sorry if I didn't see something in the problem that explains this, but I'm confused with that answer.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
12 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Note the

"should perform the replacement of all letters covered by the occurrences"

constraint, that means you must also change the fourth letter in the sample, instead of leaving it 'c'.