# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
98808 | bogdan10bos | Growing Vegetable is Fun 3 (JOI19_ho_t3) | C++14 | 372 ms | 325572 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>
using namespace std;
//#define FILE_IO
typedef pair<int, int> pii;
int N;
string s;
int getid(char ch)
{
if(ch == 'R') return 0;
if(ch == 'G') return 1;
if(ch == 'Y') return 2;
return -1;
}
char idtochar(int id)
{
if(id == 0) return 'R';
if(id == 1) return 'G';
if(id == 2) return 'Y';
return 0;
}
int dp[405][405][405][3]; /// dp[r][g][y]
int lst[405][405][405][3];
vector<int> pos[3];
Compilation message (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... |