You are viewing a single comment's thread. Return to all comments →
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;
Seems like cookies are disabled on this browser, please enable them to open this website
New Year Party
You are viewing a single comment's thread. Return to all comments →
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 (( curr;