제출 #1328565

#제출 시각아이디문제언어결과실행 시간메모리
1328565liwuyou미술 수업 (IOI13_artclass)C++20
5 / 100
35 ms3348 KiB
#include "artclass.h"
#include <bits/stdc++.h>
using namespace std;

int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
  int cntwight = 0;
  for (int i = 0; i < 450; i += 25) {
    for (int j = 0; j < 450; j += 25) {
      int cnt = 0;
      for (int x = 0; x < 50; x++) {
        for (int y = 0; y < 50; y++) {
          cnt += (R[i + x][j + y] >= 0xe0 && G[i + x][j + y] >= 0xe0 && B[i + x][j + y] >= 0xe0);
        }
      }
      if (cnt >= 45 * 45) {
        cntwight++;
      }
    }
  }
  if (cntwight >= 3) {
    return 1;
  }
  return 4;
}
#Verdict Execution timeMemoryGrader output
Fetching results...