# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
595047 | pakhomovee | Art Class (IOI13_artclass) | C++17 | 0 ms | 0 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 countGreen = 0;
for (int i = 0; i < H; ++i) {
for (int j = 0; j < W; ++j) {
if (G[i][j] > max(R[i][h], B[i][j])) {
++countGreen;
}
}
}
if (countGreen >= 0.75 * H * W) {
return 2;
}
return 1;
}