How to store large int as 10^10^18

how to store large int as 10^10^18

1 Like

You cant and u dont need to!

6 Likes

There we go, question answered xD

1 Like

can u post the link to the prob
there has to be a better way

https://www.codechef.com/JUNE19B/problems/RSIGNS

I think the related problem is this.

1 Like

Haha…Everyone is sherlock here :stuck_out_tongue:

5 Likes

You can take help from this post: http://discuss.codechef.com/questions/7992/how-can-i-store-very-very-large-integers-accurately/7993

or

Haha, you don’t need to do so. Just think logically.

1 Like

Don’t laugh on newbies in discuss forum,please.

3 Likes

In Java u can use BigInteger Class to store extremely large integers, in c++ u have to use gmp library to store large integers. BTW all coding problems of CF, CC and other well known websites can be solved under unsigned long long (2 * 10^18). So don’t waste your time searching for how to store large INT :slightly_smiling_face:.

1 Like

Lol, even I am newbie here.

What are you guys talking about? 10^10^18 is simply 18 and should not cross the limit of int on any modern platform.

2 Likes

Yo smarty !!! It made me chuckle xD .

Hypocrite xD You literally called them sherlocks