제출 #13327

#제출 시각아이디문제언어결과실행 시간메모리
13327ggoh미술 수업 (IOI13_artclass)C++98
73 / 100
113 ms3636 KiB
#include<cstdio> #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); if(c<10)return 4; else if(c<20)return 1; else if(c<40)return 2; else return 3; }
#Verdict Execution timeMemoryGrader output
Fetching results...