| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 140075 | cfalas | Art Class (IOI13_artclass) | C++14 | 142 ms | 3448 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<bits/stdc++.h>
using namespace std;
#include "artclass.h"
int style(int h, int w, int r[500][500], int g[500][500], int b[500][500]) {
double tot = 0;
double totr=0, totg=0, totb=0;
for(int i=3;i<h;i++){
for(int j=0;j<w;j++){
tot+=r[i][j]+g[i][j]+b[i][j];
totr+=r[i][j];
totg+=g[i][j];
totb+=b[i][j];
}
}
if(totg > totb && totb<totr) return 2;
if(totr > totb && totr>totg) return 4;
if(abs(totr-totb)<=10000 && abs(totr-totg)<=10000) return 3;
return 1;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
