Getting AC by changing long long to int

Revision en1, by noobcoder696969, 2024-11-07 01:39:10

The solution that got AC :

The solution that got compilation error :

Both of the codes are exactly same, I'm getting compilation error in the below one and AC in the above one

I just replaced long long by int wherever possible and got an AC

Can anyone please tell what exactly is happening ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English noobcoder696969 2024-11-07 01:39:10 472 Initial revision (published)