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 http://www.codechef.com/CDTR2015/problems/JNTUV2 .

a similar problem https://www.codechef.com/problems/P10
can anyone help me with the logic ?

1 Like