# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
94079 | aminra | Tents (JOI18_tents) | C++14 | 1320 ms | 117396 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.
//tavakol bar khoda
/*
1. pish miad
2. pish miad
3. pish miad
4. base dg? :(
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int MAXN = (int)3007;
const int infint = (int)1e8 + 3;
const int MOD = (int)1e9 + 7;
const ll inf = (ll)1e18;
ll H, W, dp[MAXN][MAXN], C[MAXN][MAXN], fact[MAXN];
ll pwr(ll a, ll b)
{
if(b == 0)
return 1;
if(b == 1)
return a;
ll c = pwr(a, b / 2);
c = (c * c) % MOD;
if(b % 2)
c = (c * a) % MOD;
return c;
}
ll inv(ll a)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |