CSES Qn -> Book Shop(weird behaviour when i submit code)

Revision en1, by KIMJONGOOF, 2024-08-29 21:31:07

Below are 2 submissions I made for the above mentioned CSES problem.

Question link -> https://cses.fi/problemset/task/1158

AC submission -> https://cses.fi/problemset/result/10353320/

Runtime error submission -> https://cses.fi/problemset/result/10353300/

The only difference between the submissions is that in the AC submission, I commented out (#define int long long). Otherwise everything else is exactly the same.

Could someone explain why this happens? Is it some fault in my code? or something wrong with CSES website?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English KIMJONGOOF 2024-08-29 21:31:07 597 Initial revision (published)