# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
498647 | model_code | NoM (RMI21_nom) | C++17 | 143 ms | 57560 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// nom_100_mihai.cpp
#include <bits/stdc++.h>
using namespace std;
const int DIM = 2000;
const int mod = 1e9 + 7;
int comb[2 * DIM + 1][2 * DIM + 1];
int fact[2 * DIM + 1];
int cnt[DIM + 1];
int dp[DIM + 1][DIM + 1];
int pre[DIM + 1];
inline void add(int& x, int y) {
x += y;
if (x >= mod)
x -= mod;
}
void precalc(int n, int m)
{
fact[0] = 1;
for(int i = 0; i <= 2 * n; ++i)
{
comb[i][0] = 1;
if(i >= 1)
fact[i] = (fact[i - 1] * 1LL * i) % mod;
Compilation message (stderr)
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |