# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
355244 | Kerim | Art Class (IOI13_artclass) | C++17 | 75 ms | 3308 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 "stdio.h"
int abs(int x){
if(x<0)return -x;
return x;
}
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
int ans=0;
for(int i=0;i<H-1;i++)
for(int j=0;j<W;j++)
ans+=abs(R[i][j]-R[i+1][j])+abs(G[i][j]-G[i+1][j])+abs(B[i][j]-B[i+1][j]);
ans/=(H-1)*W;
if(ans<10)return 4;
if(ans<23)return 1;
if(ans<60)return 2;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |