What is the fault??My code:
Query Bits......Wrong answer
Hey @sayanwinz your code is absolutely correct ,just make all your variables long long int to avoid integer overflow and then your code works fine.
If you still have any further queries please feel free to ask ,otherwise kindly mark the doubt as resolved