| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1347161 | nicolo_010 | Art Class (IOI13_artclass) | C++20 | 23 ms | 3348 KiB |
#include <bits/stdc++.h>
#include "artclass.h"
using ll = long long;
using namespace std;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
int mx=0;
int n = H, m = W;
int prod=0;
for (int i=0; i<n; i++) {
for (int j=0; j<m; j++) {
int gris = R[i][j] + G[i][j] + B[i][j];
gris /= 3;
mx = max(mx, gris);
}
}
if (mx >= 250) return 1;
if (mx >= 200) {
return 4;
}
return 2;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
