why i am failed in 1 test case getting WA
Marbles problem
You are getting wrong answer due to overflow. You need to use an implementation of bigint() to get around this issue.
Could you rectify my code , where to use bigint()
Here is the big int() implementation, just copy this code https://github.com/robinrst/HackerBlocks/blob/master/MARBLES.cpp and use bigint() instead of int everywhere in your code.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.