제출 #125442

#제출 시각아이디문제언어결과실행 시간메모리
125442MoNsTeR_CuBe미술 수업 (IOI13_artclass)C++17
6 / 100
89 ms4472 KiB
#include <bits/stdc++.h> #include "artclass.h" using namespace std; #define double long double int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { double totA = 0, totB = 0, totC = 0; int maxA = 0, maxB = 0, maxC = 0; for(int i = 0; i < H; i++){ for(int j = 0; j < W; j++){ totA+=R[i][j]; totB+=G[i][j]; totC+=B[i][j]; maxA = max(maxA, R[i][j]); maxB = max(maxB, G[i][j]); maxC = max(maxC, B[i][j]); } } if(maxA >= 249 && maxB >= 249 && maxC >= 249) return 1; if(totA/totC > (double)2.0 || totB/totC > (double)2.0){ return 4; } return 2; }
#Verdict Execution timeMemoryGrader output
Fetching results...