# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
132226 | youngyojun | Wild Boar (JOI18_wild_boar) | C++11 | 15858 ms | 826664 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define eb emplace_back
#define INFLL (0x3f3f3f3f3f3f3f3fll)
using namespace std;
typedef long long ll;
typedef pair<ll, int> pli;
const int MAXK = 100005;
ll dp[MAXK*3][7][7];
vector<int> G[2005];
ll F[2005][2005][7];
int FVA[2005][2005][7], FVB[2005][2005][7];
int FA[2005][2005][5], FB[2005][2005][5];
ll E[4005][4005];
int A[2005], B[2005], C[2005];
int D[MAXK];
int N, M, K, Q;
ll get() { return *min_element(dp[1][0], dp[1][6]+7); }
void cal(int i, int s, int e) {
if(s == e) {
for(int a = 0; a < 7; a++) for(int b = 0; b < 7; b++)
dp[i][a][b] = a == b ? F[D[s]][D[s+1]][a] : INFLL;
# | 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... |