| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1347156 | nicolo_010 | 미술 수업 (IOI13_artclass) | C++20 | 22 ms | 3332 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;
prod += gris;
}
}
prod /= (H*W);
if (prod >= 130) return 3;
return 2;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
