# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
418070 | Namnamseo | 여별 열쇠 (JOI15_keys) | C++17 | 2 ms | 1356 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |