Devana123than's blog

By Devana123than, history, 2 hours ago, In English

Hi all ,

In the recent codeforces round 1119(Div 3), I was trying to solve C my first submission was a wrong answer on test 2

here -> 389557470

my immediate thought for this was , why am I not using the -1's I converted to 1's in future and I decided to pair these things from the end, used a set and somehow this gets "accepted"

here -> 389561803

intuition for choosing the set was I needed it to be sorted(idk why I felt this mid contest) and somehow its passing... I kindly ask help from you people, is this more common, like can you accidentally end up solving a problem you can see after ward that I submitted two counting versions, using an integer count to track all the available 1's

submissions 389634479 389634212

but its not passing , meaning was erasing from the end was implementing a stronger invariant or logic for the problem. Honestly idk how I thought what I thought mid contest... I just wanted to ask, is this frequent, or I missed to learn something ?

Thank you for time in reading this

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