fork download
  1. #include <iostream>
  2.  
  3. #include <boost/multiprecision/cpp_int.hpp>
  4.  
  5. using Int = boost::multiprecision::cpp_int;
  6.  
  7. int main() {
  8.  
  9. Int f = 1;
  10.  
  11. for(int i=1; i<101; ++i){
  12.  
  13. f *= i;
  14.  
  15. }
  16.  
  17. std::cout << f;
  18. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000