# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
56462 | alenam0161 | Art Class (IOI13_artclass) | C++17 | 134 ms | 3628 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "artclass.h"
#include <bits/stdc++.h>
using namespace std;
int hwall[1000];
int gr;
int wh;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
for(int i=0;i<H;++i)
for(int j=0;j<W;++j){
int x=R[i][j]+G[i][j]+B[i][j];
hwall[x]++;
if(G[i][j]+30>R[i][j]&&B[i][j]-25<G[i][j]){
gr++;
}
else{
gr--;
}
if(max(G[i][j],min(B[i][j],G[i][j]))-min(G[i][j],min(B[i][j],G[i][j]))<25){
wh++;
}
else{
wh--;
}
}
if(wh>=0)return 1;
if(gr>=0)return 2;
else if(wh>-50)return 4;
else return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |