Python Code gives correct output on my terminal but incorrect on exactly one test case on the judge

Revision en1, by NameDinosaur, 2025-02-06 09:45:32

Problem 1986C Submission: 304652327 For the test case: 7 10 traktor 7 6 5 4 3 2 1 6 4 2 codeforces

My system gives the correct output of ccdeefo but the judge reverses the entire thing and outputs ofeedcc

I have tried a lot of things but i genuinely do not understand why it reverses my output for that one test case. I really need any help i can get.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English NameDinosaur 2025-02-06 09:45:32 528 Initial revision (published)