The first two test cases failed


where did i go wrong with my code?

@samikshamodi7 Hey Samiksha, x <= 100000000000000000 given and you took int. Got it?

@samikshamodi7 Hey Samiksha, I hope I’ve cleared your doubt. Please mark this doubt as resolved and rate me on the basis of your experience. Rating option is just below where you mark this doubt as resolve. Your feedback is very important. It helps us to 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.

samiksha see the constraint
int cannot store the much value make ur data type as long long int

it shows the same result. long long int doesn’t work either.

ur code just i hange int to long long