# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
491591 | dxz05 | Art Class (IOI13_artclass) | C++14 | 62 ms | 3300 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 white = 0, green = 0;
for (int i = 0; i < H; i++){
for (int j = 0; j < W; j++){
if (min({R[i][j], G[i][j], B[i][j]}) >= 200) white++;
if (G[i][j] >= max(R[i][j], B[i][j])) green++;
}
}
int x = H * W;
// cout << 100.0 * green / x << endl;
if (white >= 0.05 * x) return 1;
if (green >= 0.25 * x) return 2;
return 4;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |