Handling Bigint in C++ in shortest amount of code

I need a quick implementation of a bigint in C++ which handles numbers>long long in the shortest possible way.Could somebody give me a link to a tutorial or explain me otherwise?

In EGYPTFRA
http://www.codechef.com/problems/EGYPTFRA/

Many solutions have used exactly the same Bigint struct.So is this a template to be coded and used?

I need this for competitions like cookoffs.