hiddenanonymous's blog

By hiddenanonymous, 3 years ago, In English

Problem : https://infoarena.ro/problema/xortransform
Why this code passed with 100 points and this code got only 26 points?
The only difference is that in the AC code I did dp[N]={} while in partial AC code I just did dp[N].

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

»
3 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Most Probably because doing dp[N]={} initializes all indices with 0, while not doing it initializes them with random garbage values.