# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
427748 | arayi | Art Class (IOI13_artclass) | C++17 | 62 ms | 6288 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 "artclass.h"
#include <bits/stdc++.h>
using namespace std;
int a[256][256][256];
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500])
{
a[227][192][186] = a[147][144][63] = a[216][217][221] = a[53][52][50] = a[202][191][195] = 1;
a[254][252][253] = a[98][96][143] = a[14][15][10] = a[207][206][139] = 1;
a[182][179][162] = a[196][187][180] = a[211][134][114] = a[52][60][45] = a[148][166][142] = 2;
a[158][179][170] = a[171][160][164] = a[110][93][39] = a[81][90][73] = 2;
a[189][193][170] = a[73][77][40] = a[174][168][142] = a[178][144][98] = a[87][86][55] = 3;
a[218][209][180] = a[200][197][156] = a[214][186][147] = a[192][143][126] = 3;
a[150][94][77] = a[5][5][5] = a[225][9][12] = a[171][140][83] = a[186][137][94] = 4;
a[188][175][158] = a[73][86][130] = a[150][102][62] = a[166][129][0] = 4;
if(a[R[0][0]][G[0][0]][B[0][0]]) return a[R[0][0]][G[0][0]][B[0][0]];
return 4;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |