My submission (https://codeforces.net/contest/1948/submission/307669384) is giving the correct output (at least for the first 10 elements on test 2) on my laptop, but not on Codeforces. I don't understand why.↵
↵
I have attached the image of my output too so you all can see!↵
↵
↵

↵
I have attached the image of my output too so you all can see!↵
↵
↵
![ ](https://i.ibb.co/