# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16269 | ggoh | Art Class (IOI13_artclass) | C++98 | 112 ms | 3620 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"
int abs(int A,int B){return A>B?A-B:B-A;}
int style(int H,int W,int R[500][500],int G[500][500],int B[500][500])
{
int i,j,c=0;
for(i=0;i<H;i++)
{
for(j=1;j<W;j++)
{
c+=abs(R[i][j],R[i][j-1])+abs(G[i][j],G[i][j-1])+abs(B[i][j],B[i][j-1]);
}
}
c/=(H*W);
return c<10?4:c<24?1:c<60?2:3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |