# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1024617 | socpite | Art Class (IOI13_artclass) | C++17 | 69 ms | 6024 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 sumr = 0, sumg = 0, sumb = 0;
for(int i = 0; i < H; i++){
for(int j = 0; j < W; j++){
sumr += R[i][j];
sumg += G[i][j];
sumb += B[i][j];
}
}
if(sumg >= sumr && sumg >= sumb)return 2;
else return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |