# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
76641 | alexpetrescu | Art Class (IOI13_artclass) | C++14 | 86 ms | 9732 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"
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
int r = 0, g = 0, b = 0;
for (int i = 0; i < H; i++)
for (int j = 0; j < W; j++)
r += R[i][j], g += G[i][j], b += B[i][j];
if (b >= g && b >= r)
return 4;
else if (g >= r && g >= b)
return 2;
else if (r + b + g >= 105000000)
return 1;
else if (H > W || H < 320)
return 3;
else
return 2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |