# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
231493 | Dilshod_Imomov | Art Class (IOI13_artclass) | C++17 | 158 ms | 11896 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 "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 < pair < int, pair < int, int > > > st;
for ( int i = 0; i < H; i++ ) {
for ( int j = 0; j < W; j++ ) {
st.insert( { R[i][j], { G[i][j], B[i][j] } } );
}
}
int sz = st.size(), ttl = H * W;
int perc = sz / (ttl / 100);
if ( perc >= 50 ) {
return 3;
}
if ( perc >= 25 ) {
return 1;
}
if ( perc >= 15 ) {
return 2;
}
return 4;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |