# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
383511 | alireza_kaviani | Art Class (IOI13_artclass) | C++11 | 81 ms | 3456 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 <bits/stdc++.h>
#include "artclass.h"
using namespace std;
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 < 500 ; i++){
for(int j = 0 ; j < 500 ; j++){
r += R[i][j];
g += G[i][j];
b += B[i][j];
}
}
int rm = r / (H * W) , gm = g / (H * W) , bm = b / (H * W);
int val = rm + gm + bm;
//cout << rm << ' ' << gm << ' ' << bm << ' ' << val << endl;
if(val >= 470) return 1;
if(val <= 310) return 2;
if(rm >= 150) return 4;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |