# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1149671 | epicci23 | Art Class (IOI13_artclass) | C++20 | 32 ms | 3292 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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |