Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

TechNite's blog

By TechNite, 14 months ago, In English

I was getting WA on testcase 2 for the mastermind problem(DIV2E/DIV1C) in codeforces round 658. Here is my submission 87685109. The basic idea is that for perfect matching i choose thethe color with maximum frequency at each step. And after that i swap the two most frequent colors in n-x indices taking care of the odd case.(In odd case i do right cyclic shift for 3 most frequent colors)

Can anyone help me why i am getting wrong answer for this

Thanks

Read more »

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