Submission #1024617

#TimeUsernameProblemLanguageResultExecution timeMemory
1024617socpiteArt Class (IOI13_artclass)C++17
5 / 100
69 ms6024 KiB
#include "artclass.h" int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { int sumr = 0, sumg = 0, sumb = 0; for(int i = 0; i < H; i++){ for(int j = 0; j < W; j++){ sumr += R[i][j]; sumg += G[i][j]; sumb += B[i][j]; } } if(sumg >= sumr && sumg >= sumb)return 2; else return 3; }
#Verdict Execution timeMemoryGrader output
Fetching results...