# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
418070 | Namnamseo | 여별 열쇠 (JOI15_keys) | C++17 | 2 ms | 1356 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 <iostream>
#include <algorithm>
#include <utility>
#include <vector>
using namespace std;
using pp=pair<int,int>;
const int maxn = int(2e3) + 10;
#define pb push_back
int n, m, k;
pp d[maxn];
int tm[maxn*2], tn;
int user[maxn*2][2];
int F(int t) { return lower_bound(tm, tm+tn, t) - tm; }
bool vis[maxn];
int dp[2010][2010][2];
int Solve(int n, int k, vector<int> vv, vector<int> ve)
{
const int inf = int(1e9);
for (int j=0; j<=k; ++j) dp[0][j][0] = dp[0][j][1] = inf;
dp[0][0][0] = 0; dp[0][1][1] = vv[0];
for (int i=1; i<n; ++i) {
for (int j=0; j<=k; ++j) {
dp[i][j][0] = inf;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |