codeforces somehow giving wrong output than what my ide is giving

Revision en1, by dikki99, 2022-06-11 13:43:52

this is my code link which is not accepted: https://mirror.codeforces.com/contest/233/submission/160186584

this is the code link which is accepted: https://mirror.codeforces.com/contest/233/submission/160187423

both on 10000000100000000 as the input are giving 100000000 as the output in my local ide, but somehow on running my previous solution on codeforces it is giving -1 as the output.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English dikki99 2022-06-11 13:43:52 447 Initial revision (published)