Why does my code read junk bits?

Revision en1, by AishwaryaR, 2020-02-22 12:58:47

I've made a submission to problem 1303D. I get a correct answer when I iterate upto 30 bit positions, but, according to the constraints in the question, I've to iterate upto 60 (n: 1e18). I don't understand why the code reads junk bits (and hence increments variable splits) thus giving a WA.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AishwaryaR 2020-02-22 12:58:47 434 Initial revision (published)