Submission #1149671

#TimeUsernameProblemLanguageResultExecution timeMemory
1149671epicci23Art Class (IOI13_artclass)C++20
5 / 100
32 ms3292 KiB
#include "bits/stdc++.h" #include "artclass.h" #define all(v) v.begin() , v.end() #define sz(a) (int)a.size() using namespace std; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]){ int green = 0; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ if(G[i][j] >= max(R[i][j],B[i][j])) green++; } } if(green >= (H*W)/2) return 2; return 3; }
#Verdict Execution timeMemoryGrader output
Fetching results...