제출 #135485

#제출 시각아이디문제언어결과실행 시간메모리
135485Talant미술 수업 (IOI13_artclass)C++17
0 / 100
109 ms6144 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] == G[i][j] && B[i][j] == R[i][j] && (R[i][j] == 0 || R[i][j] == 105 || R[i][j] == 128 || R[i][j] == 169 || R[i][j] == 192)) return 1; 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 3; }
#Verdict Execution timeMemoryGrader output
Fetching results...