# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
98031 | giorgikob | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++14 | 138 ms | 163196 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#define F first
#define S second
#define ll long long
using namespace std;
const int N = 5e5+5;
ll n, m, k, x, y, a, b, t, q, ans, sum;
vector< ll > g_ind, r_ind, y_ind;
ll A[N],B[N];
char C[N];
int G,R,Y;
int g_num[N], r_num[N], y_num[N];
int ind;
int dp[405][405][405][4];
int calc(int x,int y){
if(x==-1 && y==-1)return -1;
if(x==-1)return y;
if(y==-1)return x;
return min(x,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... |