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

Revision en1, by devit121, 2021-07-31 08:54:17

I've been trying to do this problem, but it keeps failing on the 2nd test ![ ](https://mirror.codeforces.com/e7dc53/Screenshot 2021-07-31 094419.png) 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 ![ ](https://mirror.codeforces.com/50944c/Screenshot 2021-07-31 094640.png) 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)