# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
61398 | kingpig9 | Mountains (IOI17_mountains) | C++11 | 53 ms | 15356 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>
#include "mountains.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int MAXN = 2018;
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define fi first
#define se second
#define all(v) (v).begin(), (v).end()
#define fillchar(a, s) memset((a), (s), sizeof(a))
int N;
int dp[MAXN][MAXN], A[MAXN];
int maximum_deevs (vector<int> v) {
N = v.size();
copy(all(v), A);
for (int rt = 0; rt < N; rt++) {
dp[rt][rt] = 1;
int block = rt; //which one IS BLOCKING others?
int notsee = 0; //which one you guarantee not see?
for (int lt = rt - 1; lt >= 0; lt--) {
dp[lt][rt] = dp[lt][rt - 1];
# | 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... |