Negationist's blog

By Negationist, history, 5 weeks ago, In English

In the problem: https://codeforces.net/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://codeforces.net/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