# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
337793 | er888kh | Tents (JOI18_tents) | C++17 | 366 ms | 71296 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.
#include <bits/stdc++.h>
using namespace std;
#define ALL(iter) (iter).begin(),(iter).end()
typedef int64_t s64;
typedef pair<int, int> pii;
typedef pair<s64, s64> pll;
#define F first
#define S second
#define MAXN 3003
s64 mem[MAXN][MAXN];
const int md = 1e9 + 7;
inline s64 binom(int n){
return ((n * 1LL * (n-1)) >> 1) % md;
}
s64 dp(int h, int w){
if(h < 0 || w < 0){
return 0;
}
if(h == 0 || w == 0){
return 1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |