fork download
  1. #include <iostream>
  2. const int mod = (int)1e9+7;
  3. int mul(int x, int y) {
  4. return int(x * 1LL * y % mod);
  5. }
  6. int main() {
  7. int fact = 1;
  8. for (int i = 1; i <= (1 << 28); i++)
  9. fact = mul(fact, i);
  10. std::cout << fact;
  11. return 0;
  12. }
Success #stdin #stdout 1.08s 4364KB
stdin
Standard input is empty
stdout
864357307