Different output on cf

Правка en1, от SevenAlarm, 2023-11-20 18:54:25

Hi! This is my first ever post on Codeforces XD I'm facing some weird issue here, I've solved 484A - Bits this problem and it works fine with the tastcases given in the submission details in my own compiler (I'm using vscode) but is apparently giving different outputs on Codeforces' judge. And the difference is like, off by 1!

I'm assuming there's some problem with the values being very large, since the bug happens with the 18 digit testcase lol. Could there be some memory trick that I can do? I'm relatively new to the c++ community and would be very happy to get ur tips.

I've attached the screenshots from 1)cf output & 2)my original output any ideas? I'd be thankful.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский SevenAlarm 2023-11-20 19:20:02 573 (published)
en2 Английский SevenAlarm 2023-11-20 19:18:15 1463 (saved to drafts)
en1 Английский SevenAlarm 2023-11-20 18:54:25 712 Initial revision (published)