제출 #234109

#제출 시각아이디문제언어결과실행 시간메모리
234109tinjyu미술 수업 (IOI13_artclass)C++14
0 / 100
75 ms3336 KiB
#include "artclass.h" long long int green,white; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { for(int i=0;i<H;i++) { for(int j=0;j<W;j++) { if(R[i][j]+G[i][j]+B[i][j]>700)white++; if(G[i][j]-R[i][j]-B[i][j]>50 && G[i][j]>=80)green++; } } if(green*5>H*W)return 2; if(white*4>H*W)return 0; }

컴파일 시 표준 에러 (stderr) 메시지

artclass.cpp: In function 'int style(int, int, int (*)[500], int (*)[500], int (*)[500])':
artclass.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...