fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <boost/multiprecision/cpp_int.hpp>
  4.  
  5. using Int = boost::multiprecision::cpp_int;
  6.  
  7. int main(){
  8. Int x = 1;
  9. for(int i=2; i<171; ++i){
  10. x *= i;
  11. }
  12. std::cout << "fact = " << x;
  13. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
fact = 7257415615307998967396728211129263114716991681296451376543577798900561843401706157852350749242617459511490991237838520776666022565442753025328900773207510902400430280058295603966612599658257104398558294257568966313439612262571094946806711205568880457193340212661452800000000000000000000000000000000000000000