제출 #117711

#제출 시각아이디문제언어결과실행 시간메모리
117711GioChkhaidzeArt Class (IOI13_artclass)C++14
0 / 100
100 ms6188 KiB
#include <bits/stdc++.h> #include "artclass.h" using namespace std; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { return 3; int S=H*W,Green=0; for (int i=0; i<H; i++) for (int j=0; j<W; j++) { int Mx=max(max(R[i][j],G[i][j]),B[i][j]); if (Mx!=G[i][j]) continue; if (G[i][j]-max(R[i][j],B[i][j])>=30) Green++; } if (Green>S/3) return 3; return 2; }
#Verdict Execution timeMemoryGrader output
Fetching results...