This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld double
const int INF = 1e18;
const int mod = 12345;
signed main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int n , f , s;
cin >> n >> f >> s;
int mod = 1e9 + 7;
int ans = 1;
for(int i = 1;i <= n - 2;i++){
ans = (ans * i) % mod;
}
cout << ans << endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |