# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
741926 | haydendoo | Art Class (IOI13_artclass) | C++17 | 56 ms | 3280 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>
#include "artclass.h"
using namespace std;
const int dx[4]={-1,0,1,0}, dy[4]={0,1,0,-1};
int style(int h, int w, int r[500][500], int g[500][500], int b[500][500]) {
int adjr=0,adjg=0,adjb=0;
int style2=0;
for(int i=0; i<h; ++i) {
for(int j=0; j<w; ++j) {
int R=r[i][j], G=g[i][j], B=b[i][j];
if(G>=R && G>=B) ++style2;
else if(max(R,G)-B>=40 && abs(R-G)<=50) ++style2;
}
}
if(style2>=30000) return 2;
return 7;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |