# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
56451 | alenam0161 | Art Class (IOI13_artclass) | C++17 | 128 ms | 3708 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]+R[i][j]+B[i][j]<255){
gr++;
}
else{
gr--;
}
if(G[i][j]+R[i][j]+B[i][j]>500){
wh++;
}
else{
wh--;
}
}
if(gr>=0)return 2;
if(wh>=0)return 1;
else if(wh>-50)return 4;
else return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |