# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1209546 | Captain_Georgia | 미술 수업 (IOI13_artclass) | C++20 | 91 ms | 11336 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]) {
set<array<int, 3>> s;
for (int i = 0;i < H;i ++) {
for (int j = 0;j < W;j ++) {
s.insert({R[i][j], G[i][j], B[i][j]});
}
}
if (s.size() <= 10) return 4;
if (s.size() <= 20) return 1;
return 2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |