# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
715988 | Nonoze | Art Class (IOI13_artclass) | C++14 | 174 ms | 13388 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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]) {
map<tuple<int, int, int>, bool> verif;
int comp=0;
for (int i = 0; i < H; ++i)
{
for (int j = 0; j < W; ++j)
{
if (!verif.count(make_tuple(R[i][j], G[i][j], B[i][j])))
{
comp++;
}
verif[make_tuple(R[i][j], G[i][j], B[i][j])]=true;
}
}
//cout << comp << endl;
if (comp>=70000)
{
return 2;
}
if (comp>=30000)
{
return 3;
}
if (comp>=17000)
{
return 1;
}
return 4;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |