Exceeding the limit of 64-bit integer

if the output in the question is given to exceed the limit of 64 bit integer than how should we output the answer as there are no specific instructions for taking modulus or anything else

You need to use an implementation of bigInt() class in order to store these numbers.

Hi @f20180123, If you are using c++ , then one way of doing this is by using array to store numbers , what i mean by this is to use store large numbers in array digit per block and devise algorithm for their multiplication and division
you can refer the following post : -

refer to the following 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.