# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1059679 | NeroZein | Netrpeljivost (COI23_netrpeljivost) | C++17 | 1 ms | 348 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;
#ifdef Nero
#include "Deb.h"
#else
#define debug(...)
#endif
const int N = 2050;
const long long INF = 1e16;
int a[N][N];
long long dp[N][N];
void build(int nd, int l, int r) {
if (l == r) {
return;
}
int mid = (l + r) >> 1;
build(nd * 2, l, mid);
build(nd * 2 + 1, mid + 1, r);
for (int i = l; i <= r; ++i) {
dp[nd][i] = INF;
}
for (int i = l; i <= mid; ++i) {
for (int j = mid + 1; j <= r; ++j) {
dp[nd][i] = min(dp[nd][i], dp[nd * 2][i] + dp[nd * 2 + 1][j] + a[i][j]);
}
}
# | 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... |