Off by one?

Revision en1, by Negationist, 2024-10-21 07:27:08

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Negationist 2024-10-21 07:27:08 2169 Initial revision (published)