# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
358432 | juggernaut | 미술 수업 (IOI13_artclass) | C++14 | 84 ms | 6252 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.
//Actually picked from https://oj.uz/profile/kerim
#include"artclass.h"
#include<bits/stdc++.h>
#ifndef EVAL
#include"grader.cpp"
#endif
using namespace std;
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<20)return 1;
if(ans<60)return 2;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |