Why is my code working on my machine but not on Codeforces?

Revision en3, by Ryuuji_Nakamura, 2025-02-25 21:57:14

My submission (https://codeforces.me/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!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Ryuuji_Nakamura 2025-02-25 21:57:14 62
en2 English Ryuuji_Nakamura 2025-02-25 21:54:32 29 Tiny change: 'll can see' -> 'll can see![ ](https://ibb.co/39XKxhhK)'
en1 English Ryuuji_Nakamura 2025-02-25 21:51:36 333 Initial revision (published)