# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
152955 | karma | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++14 | 137 ms | 163040 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#pragma GCC optimize("O3")
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
#define ll long long
using namespace std;
const int N = 401;
const int inf = int(1e9) + 7;
int c[N][3], pos[N][3], f[N][N][N][3];
int n, step, p;
string s;
void Irene(int r, int g, int y, int cur, int col) {
if(col == 0) {
p = pos[r + 1][col];
step = max(c[p][1] - g, 0) + max(c[p][2] - y, 0);
f[r + 1][g][y][col] = min(f[r + 1][g][y][col], f[r][g][y][cur] + step);
} else if(col == 1) {
p = pos[g + 1][col];
step = max(c[p][0] - r, 0) + max(c[p][2] - y, 0);
f[r][g + 1][y][col] = min(f[r][g + 1][y][col], f[r][g][y][cur] + step);
} else {
p = pos[y + 1][col];
step = max(c[p][0] - r, 0) + max(c[p][1] - g, 0);
f[r][g][y + 1][col] = min(f[r][g][y + 1][col], f[r][g][y][cur] + step);
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |