Cadis_Etrama_Di_Raizel's blog

By Cadis_Etrama_Di_Raizel, history, 4 months ago, In English

Hi, codeforces, Getting straight to the point my submission 143634261 failed at system testing and gave me a runtime error at test case 14. I tried searching about it but the only useful resource I was able to find is this blog but my code can't go beyond the limit and can't go negative. So, please help me.

 
 
 
 
  • Vote: I like it
  • -8
  • Vote: I do not like it

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it
Your comparator is fishy:

If a = {1, 2} and b = {1, 2}, then both cmp(a, b) and cmp(b, a) return true.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Same happened with 143518267 this submission. because on a string i used s[n] th character. here n is the size of string.

  • »
    »
    4 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I don't think that's the problem with my code as never go out of bound. The real problem was mentioned in the above comment. Check it if you are interested.