Negationist's blog

By Negationist, history, 5 weeks ago, In English

In the problem: https://mirror.codeforces.com/contest/2022/problem/C. My implementation involves pushing the strings one character forward to fix the off by one. In the official solution, they push the votes in a different way, here is a link: https://mirror.codeforces.com/blog/entry/135095. Look for "vot[k][i+1]=1;." why does my way not work? Here is the code:

My Code
  • Vote: I like it
  • -1
  • Vote: I do not like it