Usu's blog

By Usu, history, 6 years ago, In English

Hey, I am encountering difficulties with this problem: http://codeforces.com/contest/919/problem/D from yesterday contest. This is my code commented. Can anybody tell me what is wrong with my logic? My first failed test case is #6, I count more than I should. code : http://codeforces.com/contest/919/submission/34816679

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it +4 Vote: I do not like it

I haven't gone through all of the code yet, however your array C only has size 33.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yeah, that was the only mistake, I didn't notice that, but I didn't expect to get wrong answer instead of MLE or runtime error. Thanks!