# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
97589 | georgerapeanu | Art Class (IOI13_artclass) | C++11 | 108 ms | 4864 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]) {
double num = 0;
for(int i = 0;i < H;i++){
for(int j = 0;j < W;j++){
if(R[i][j] < G[i][j] && G[i][j] > B[i][j]){
num += (G[i][j] - B[i][j]) / 256.0;
}
else if(G[i][j] <= R[i][j] && R[i][j] > B[i][j]){
num += (R[i][j] - B[i][j]) / 512.0;
}
}
}
if(num >= 0.75 * H * W){
return 2;
}
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |