Weird MLE

Revision en2, by EbraM96, 2018-01-05 14:13:25

Problem: 279C - Ladder

MLE:33920174

AC:33920297

The only difference is at line 66:

MLE: while(i&&a[i]<=a[i-1])

AC: while(~i&&a[i]<=a[i-1])

When i = 0 the array access a[i-1] will be invalid I get that but why does this result a MLE verdict?!

Note: while(~i) is the same as while(i!=-1)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English EbraM96 2018-01-05 16:09:37 2
en2 English EbraM96 2018-01-05 14:13:25 2 Tiny change: '[problem:297C]\n\nMLE:' -> '[problem:279C]\n\nMLE:'
en1 English EbraM96 2018-01-05 14:12:42 350 Initial revision (published)