ista2000's blog

By ista2000, history, 4 years ago, In English

Hello CodeForces Community,

I would like to have some help with my solution for Problem D, Santa Claus and a Palindrome. I am missing test case 14 just by a small amount, what is it that I am doing wrong or something that I missed?

Thank you in advance. :D

 
 
 
 
  • Vote: I like it
  • +7
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Good day to you.

Try following input (hope it is correct):

4 3
ccb 7
bcc 0
cac 7
cac -2

The answer shall be 14 (ccbcacbcc)

Good Luck & Have Nice Day!