# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
98919 | MvC | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++11 | 134 ms | 163100 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.
#pragma GCC optimize("O3")
#include<bits/stdc++.h>
#define rc(x) return cout<<x<<endl,0
#define pb push_back
#define in insert
#define er erase
#define fd find
#define fr first
#define sc second
typedef long long ll;
typedef long double ld;
const ll INF=0x3f3f3f3f3f3f3f3f;
const ll llinf=(1LL<<62);
const int inf=(1<<30);
const int nmax=1e5+50;
const int mod=1e9+7;
using namespace std;
int n,i,nr[3],f[405][405][405][3],r,g,y,R,G,Y,s;
vector<pair<int,pair<int,int> > >v[3];
char c;
int get(char c)
{
if(c=='R')return 0;
if(c=='G')return 1;
return 2;
}
int cst(pair<int,pair<int,int> >x,pair<int,pair<int,int> >y)
{
return abs(x.fr-y.fr)+abs(x.sc.fr-y.sc.fr)+abs(x.sc.sc-y.sc.sc);
}
# | 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... |