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?↵
↵
![ ](/predownloaded/46/bb/46bbb536c248cf47c310c8f52bde77a1d91260d6.png)↵
↵
![ ](/predownloaded/45/62/456273d7a0293ab7ba2756735945a3395ae09412.png)
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?↵
↵
![ ](/predownloaded/46/bb/46bbb536c248cf47c310c8f52bde77a1d91260d6.png)↵
↵
![ ](/predownloaded/45/62/456273d7a0293ab7ba2756735945a3395ae09412.png)