# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
235213 | crossing0ver | 미술 수업 (IOI13_artclass) | C++17 | 90 ms | 6544 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include "artclass.h"
using namespace std;
int X[500][500][3],tot[3],mx[3],mn[3],F[5];
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
for (int i = 0; i < H; i++)
for (int j = 0; j < W; j++) {
X[i][j][0] = R[i][j];
X[i][j][1] = G[i][j];
X[i][j][2] = B[i][j];
for (int e = 0; e < 3 ; e++) {
for (int f = e + 1; f < 3; f++)
if (X[i][j][e] >= X[i][j][f]*4) F[5]++;
}
}
for (int i = 0; i < H; i++)
for (int j = 0; j < W; j++)
for (int t = 0; t < 3; t++) {
tot[t] += X[i][j][t];
if (X[i][j][0] <= X[i][j][t] && X[i][j][1] <= X[i][j][t] && X[i][j][2] <= X[i][j][t])
mx[t]++;
if (X[i][j][0] >= X[i][j][t] && X[i][j][1] >= X[i][j][t] && X[i][j][2] >= X[i][j][t])
mn[t]++;
}
if (F[5] >= 0.7*W*H) return 4;
if ((tot[1] >= tot[0] && tot[1] >= tot[2]) || (mx[1] >= mx[0] && mx[1] >= mx[2])) return 2;
for (int i = 0; i < 3; i++) {
if (((double)2.34*tot[i] > (tot[0] + tot[1] + tot[2]))) return 4;
}
if ( 1ll*mx[0]*mx[1] <= 50000 || 1ll*mx[1]*mx[2] <= 50000 || 1ll*mx[0]*mx[2] <= 50000 ) return 4;
if ( (double)tot[2] >= (double)1.3*tot[1] && (double)tot[2] >= (double)1.4*tot[0] ) {
return 1;
}
return 3;
} /*
int main() {
int t;
int R[500][500],G[500][500],B[500][500];
cin >> t;
while (t--) {
int h,w;
for (int i =0; i < h; i++)
for (int j = 0; j < w; j++)
;
}
} */
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |