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