LUCKY2: lucky number range

how to store 10^1000 in c? not even unsigned long long can store it…plz help

2 Likes

you need to use character array or strings to store such large numbers.

It is not possible to store such a large number in c/c++. So we use string for this.

If you haven’t used it before now to solve problems you can try CodeChef: Practical coding for everyone .

a similar problem P10 Problem - CodeChef
can anyone help me with the logic ?

1 Like