제출 #234923

#제출 시각아이디문제언어결과실행 시간메모리
234923Nodir_Bobiev미술 수업 (IOI13_artclass)C++17
1 / 100
81 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 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...