Submission #234926

#TimeUsernameProblemLanguageResultExecution timeMemory
234926Nodir_BobievArt Class (IOI13_artclass)C++17
2 / 100
78 ms3704 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]) { 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 (rand()%4)+1; }
#Verdict Execution timeMemoryGrader output
Fetching results...