제출 #76637

#제출 시각아이디문제언어결과실행 시간메모리
76637alexpetrescu미술 수업 (IOI13_artclass)C++14
10 / 100
98 ms3580 KiB
#include "artclass.h" int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { int r = 0, g = 0, b = 0; for (int i = 0; i < H; i++) for (int j = 0; j < W; j++) r += R[i][j], g += G[i][j], b += B[i][j]; if (b >= g && b >= r) return 4; else if (g >= r && g >= b) return 2; else if (r + b + g >= 105000000) return 1; else if (H > W || H < 300) return 3; else return 2; }
#Verdict Execution timeMemoryGrader output
Fetching results...