| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1347161 | nicolo_010 | 미술 수업 (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... | ||||
