# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
739086 | grossly_overconfident | Art Class (IOI13_artclass) | C++17 | 64 ms | 6012 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 greencount = 0;
for (int i = 0; i < h; ++i){
for (int j = 0; j < w; ++j){
if (g[i][j] > r[i][j] && g[i][j] > b[i][j]){
greencount++;
}
}
}
if (greencount > h * w / 3){
return 2;
}
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |