Replace them all


This is my code it’s not passing test case 1 … help me anyone here

2 Likes

Hi Akshat,
just take the input in the form of string and then compute the ans… refer this https://ide.codingblocks.com/s/637753 as there may be leading zeros as well…

but the string topic is very down in this course and i haven’t studied it yet

please tell me a error in the code i have provided coz i haven’t studied string or array yet

ok… so actually problem is not of leading zeros… just make yr input long long int instead of just int due to the constraints mentioned… ur code will work fine…
corrected code --> https://ide.codingblocks.com/s/637766

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.