# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
135478 | Talant | Art Class (IOI13_artclass) | C++17 | 84 ms | 5412 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 "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 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |