WHy wrong answer is comming

long long unsigned has range 0 to 18,446,744,073,709,551,615 which is large than constraint 10^18. then why wrong answer.

Hello @mdj int can handle numberrs upto 1e9 and long long can handle upto 1e18.
there is no need to use unsigned int .
please share your code i will see what is the mistake.

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.