# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
230968 | AlexLuchianov | Collecting Stamps 3 (JOI20_ho_t3) | C++14 | 1087 ms | 978700 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cassert>
using namespace std;
using ll = long long;
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) < (b)) ? (b) : (a))
int const nmax = 200;
ll const inf = 2000000000;
ll v[5 + nmax], t[5 + nmax];
ll dp[5 + 2 * nmax][5 + 2 * nmax][5 + nmax][2];
int n;
ll extract(int x, int y, int val, int h){
if(val < 0)
return inf;
else
return dp[x][y][val][h];
}
ll dist(int x, int y){
return fabs(v[x] - v[y]);
}
# | 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... |