Submission #135480

#TimeUsernameProblemLanguageResultExecution timeMemory
135480TalantArt Class (IOI13_artclass)C++17
0 / 100
75 ms5624 KiB
#include "artclass.h" //#include "grader.cpp" #include <bits/stdc++.h> #define sc second #define fr first #define mk make_pair #define pb push_back using namespace std; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { for (int i = 0; i < H; i ++) { for (int j = 0; j < W; j ++) { if (R[i][j] == 124 && G[i][j] == 252 && B[i][j] == 0) return 2; if (R[i][j] == 127 && G[i][j] == 255 && B[i][j] == 0) return 2; if (R[i][j] == 50 && G[i][j] == 205 && B[i][j] == 50) return 2; if (R[i][j] == 0 && G[i][j] == 255 && B[i][j] == 0) return 2; if (R[i][j] == 34 && G[i][j] == 139 && B[i][j] == 34) return 2; if (R[i][j] == 0 && G[i][j] == 128 && B[i][j] == 0) return 2; if (R[i][j] == 0 && G[i][j] == 100 && B[i][j] == 0) return 2; if (R[i][j] == 173 && G[i][j] == 255 && B[i][j] == 47) return 2; if (R[i][j] == 154 && G[i][j] == 205 && B[i][j] == 50) return 2; if (R[i][j] == 0 && G[i][j] == 255 && B[i][j] == 127) return 2; if (R[i][j] == 0 && G[i][j] == 250 && B[i][j] == 154) return 2; } } return 4; }
#Verdict Execution timeMemoryGrader output
Fetching results...