Submission #76636

#TimeUsernameProblemLanguageResultExecution timeMemory
76636alexpetrescuArt Class (IOI13_artclass)C++14
16 / 100
208 ms3612 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 < 340) return 3; else return 2; }
#Verdict Execution timeMemoryGrader output
Fetching results...