Submission #427748

#TimeUsernameProblemLanguageResultExecution timeMemory
427748arayiArt Class (IOI13_artclass)C++17
0 / 100
62 ms6288 KiB
#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 timeMemoryGrader output
Fetching results...