doubleMasalaMaggi's blog

By doubleMasalaMaggi, history, 17 hours ago, In English

1988C - Increasing Sequence with Fixed OR When I did this problem in cpp, it got stuck on the 101th case of test case 2 that was 10^18, but then I submitted the same logic in python, this worked, I was not able to figure out why this happened and this is not my first encounter when python worked with large number and cpp didn't. cpp submission -> 298635588 python submission- > 298635633. Please help me out why this happened.

  • Vote: I like it
  • -3
  • Vote: I do not like it

»
17 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

replace 1 by 1LL

»
17 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

I changed the degrees, as well as $$$(1 « i)$$$ if written like this, it will contain a maximum of $$$int$$$. If you write like this $$$(1ll « i)$$$ then it will be $$$long$$$ $$$long$$$ here is the modified code

Code