The tutorial doesn't really tell you how wonderfully easy it is to use gmp in 
c++.

If you want a factorial function, say:

mpz_class fact(unsigned int n)
{
     if (n==0) return 1;

     return n*fact(n-1);
}

If you want to print a big factorial number,
   cout << fact(40);

Most of the time you can you can declare integer variables as
  mpz_class x;
and then write code as if they were ordinary integers.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/X2YH_N_-sPAJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to