# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
107382 | Diuven | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++14 | 261 ms | 3644 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef pair<int, int> pii;
const int INF = 1<<20;
int n;
char ST[410];
int P[3][410], S[3][410], F[3];
int D[2][410][410][3];
inline int _min(int x, int y){ return x<y ? x : y; }
inline int _max(int x, int y){ return x>y ? x : y; }
int dist(int r, int g, int y, int x){
int res = 0, C[3] = {r,g,y};
for(int k=0; k<3; k++)
res += _max(0, S[k][x]-C[k]);
return res;
}
int main(){
ios::sync_with_stdio(0); cin.tie(0);
cin>>n>>(ST+1);
{
# | 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... |