# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
491375 | dxz05 | 미술 수업 (IOI13_artclass) | C++14 | 53 ms | 6036 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"
#include <bits/stdc++.h>
using namespace std;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
int rr = 0, gg = 0, bb = 0;
for (int i = 0; i < H; i++){
for (int j = 0; j < W; j++){
rr += R[i][j];
gg += G[i][j];
bb += B[i][j];
}
}
int x = H * W;
//cout << endl << rr / x << ' ' << gg / x << ' ' << bb / x << endl;
if (rr > gg) return 2;
if (1.0 * min(gg, rr) / max(gg, rr) >= 0.7) return 4;
return 1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |