# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
29628 | aybala | Art Class (IOI13_artclass) | C++11 | 0 ms | 0 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.
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
h=H;
w=W;
int g=0,r=0,b=0;
fori(i,0,h){
fori(j,0,w){
r+=R[i][j];
g+=G[i][j];
b+=B[i][j];
}
}
if(g>=r && g>=b)
return 2;
return 4;
}