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.
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'.