# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
678573 | Tuanlinh123 | Dango Maker (JOI18_dango_maker) | C++17 | 378 ms | 155500 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 ll int
#define ld long double
#define pll pair<ll,ll>
#define mp make_pair
#define pb push_back
#define fi first
#define se second
using namespace std;
#define LOCALIO "C:/Users/admin/Documents/Code/"
#define maxn 3100
ll n, m, crr;
char a[maxn][maxn];
ll dp[maxn][maxn][2][2];
bool check(ll i, ll j, ll di)
{
if (di)
{
if (i+2>n || i<=0)
return 0;
if (a[i][j]!='R' || a[i+1][j]!='G' || a[i+2][j]!='W')
return 0;
return 1;
}
else
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |