# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
877453 | mnbvcxz123 | Art Class (IOI13_artclass) | C++17 | 58 ms | 6168 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "artclass.h"
#include <bits/stdc++.h>
int style(int H,int W,int R[500][500],int G[500][500],int B[500][500])
{
long long ans = 0;
for(int x=0;x<H;x++)
for(int y=0;y<W-1;y++)
{
int RR=abs(R[x][y]-R[x][y+1]);
int GG=abs(G[x][y]-G[x][y+1]);
int BB=abs(B[x][y]-B[x][y+1]);
ans+=(RR+GG+BB);
}
ans/=(H*(W-1));
if(ans<=8) return 4;
if(ans<=25) return 1;
if(ans<=53) return 2;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |