Code failing system tests when submitting but working perfectly on my computer

Revision en2, by devit121, 2021-07-31 08:56:28

I've been trying to do this problem, but it keeps failing on the 2nd test on my computer it gives the correct answer, but when I try to submit it fails. I tried to work around that test case and failed on the 3rd one so what am I doing wrong? It's standard input/output. here's my code:

also, this is my first post so I apologize if some janky sh!t happens

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English devit121 2021-07-31 08:58:01 0 (published)
en2 English devit121 2021-07-31 08:56:28 199
en1 English devit121 2021-07-31 08:54:17 707 Initial revision (saved to drafts)