You can take help from this post: How can I store very very large integers accurately? - #2 by admin - faq - CodeChef Discuss
or
You can take help from this post: How can I store very very large integers accurately? - #2 by admin - faq - CodeChef Discuss
or