# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
998559 | bachhoangxuan | Art Class (IOI13_artclass) | C++17 | 36 ms | 6136 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 <bits/stdc++.h>
using namespace std;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]){
int s=0;
for(int i=0;i<H;i++) for(int j=0;j<W-1;j++) s+=abs(R[i][j]-R[i][j+1])+abs(G[i][j]-G[i][j+1])+abs(B[i][j]-B[i][j+1]);
s/=H*(W-1);
return (s<9?4:(s<23?1:(s<58?2:3)));
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |