# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
234923 | Nodir_Bobiev | Art Class (IOI13_artclass) | C++17 | 81 ms | 3704 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]) {
long long red=0, green=0, blue = 0;
for( int i = 0; i < H; i ++ ){
for( int j = 0; j < W; j ++ ){
red += (R[i][j]==max({R[i][j],G[i][j],B[i][j]}));
green += (G[i][j]==max({R[i][j],G[i][j],B[i][j]}));
blue += (B[i][j]==max({R[i][j],G[i][j],B[i][j]}));
}
}
//cout << red << ' ' << green << ' ' << blue << endl;
if( max({red, green, blue}) == green ){
return 2;
}
srand(time(0));
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |