Submission #739086

#TimeUsernameProblemLanguageResultExecution timeMemory
739086grossly_overconfidentArt Class (IOI13_artclass)C++17
2 / 100
64 ms6012 KiB
#include "artclass.h" int style(int h, int w, int r[500][500], int g[500][500], int b[500][500]) { int greencount = 0; for (int i = 0; i < h; ++i){ for (int j = 0; j < w; ++j){ if (g[i][j] > r[i][j] && g[i][j] > b[i][j]){ greencount++; } } } if (greencount > h * w / 3){ return 2; } return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...