New Year Party

  • + 1 comment

    Test case #12

    9

    1 5 5 6 6 7 7 8 8

    Correct answer:12. and my answer is 12.

    Why am I getting "wrong answer" status?

    read n; read n; prev=0; curr=0; for i in curr; curr=prev -ge Misplaced &(( curr;