# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
92625 | kitsu_hi | Paint By Numbers (IOI16_paint) | C++14 | 60 ms | 43384 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 "paint.h"
#include<bits/stdc++.h>
using namespace std;
#define nl '\n'
int frsB = -1;
int dp[200005][105][3];
long long Black[200005];
bool White[200005];
int c1[105];
bool used[200005][105][2];
void find ( string ss ) {
int ll = ss.size();
for ( int i = 0; i < ll; i++ ) {
if ( ss[i] == 'X' && frsB == -1 ) {
frsB = i;
}
}
if ( frsB == -1 ) {
frsB = 1000000000;
}
}
void go ( int clr, int num, int pos ) {
if( used[pos][num][clr] != 0 ) return;
used[pos][num][clr] = 1;
if( num == 0 && clr == 1 ) return;
if( pos < 0 ) return;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |