Showing Wrong Answer on First Test Case (Problem D ; Round 793)

Revision en1, by protons, 2021-05-06 06:34:18

In Problem D for the first test case (last case)
6 1 6 3 4 5 6 My answer was 10 everywhere (I tried on VsCode, GFG ide, Codechef ide) but when I was submitting it on Codeforces it was showing 16 and it wasted all of my time. Can Anyone please tell me what could be the probable reason?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English protons 2021-05-06 06:38:11 150 This is the image from CF in which it is showing 16. (published)
en1 English protons 2021-05-06 06:34:18 354 This is the image from Vs code in which my answer is 10 (saved to drafts)