# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
396078 | qwerasdfzxcl | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++14 | 116 ms | 154224 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>
typedef long long ll;
using namespace std;
int dp[404][202][202][3], val[404][202][202][3];
vector<int> pos[3];
string s;
int f(char x){
if (x=='R') return 0;
else if (x=='G') return 1;
else if (x=='Y') return 2;
return -1;
}
bool CHK(int i, int j, int k, int z){
int l = i-j-k;
i--;
if (z==0) j--;
else if (z==1) k--;
else if (z==2) l--;
if (j<0 || k<0 || l<0) return 0;
if (j*2>i+1 || k*2>i+1 || l*2>i+1) return 0;
return 1;
}
int main(){
cin.tie(NULL);
ios_base::sync_with_stdio(false);
int n;
# | 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... |