# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1209548 | Captain_Georgia | Art Class (IOI13_artclass) | C++20 | 87 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() <= 6) return 4;
if (s.size() <= 20) return 1;
return 2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |