I submitted the same code to spoj and got AC but struggling with hackerblocks!
Code: https://ide.codingblocks.com/s/86387
Test cases are wrong here on Hackerblocks and need to be updated!
MARBLES wong test cases
tc are not wrong this line shouldnt be there in the Q
You can assume that this number fits into a signed 64 bit integer.
1 Like
Can you please suggest me what I’m doing wrong…I’m struggling from many hours on this question but still getting WA!
Updated code: https://ide.codingblocks.com/s/86387
it wont be fit in 64 bit integrs use string multiplication… thats why i told you that line in the Q is wrong…
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.