제출 #140047

#제출 시각아이디문제언어결과실행 시간메모리
140047cfalas미술 수업 (IOI13_artclass)C++14
1 / 100
75 ms3320 KiB
#include "artclass.h" int style(int h, int w, int r[500][500], int g[500][500], int b[500][500]) { double tot = 0; double totr=0, totg=0, totb=0; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ tot+=r[i][j]+g[i][j]+b[i][j]; totr+=r[i][j]; totg+=g[i][j]; totb+=b[i][j]; } } if(totg/tot > 0.3) return 2; return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...