제출 #121674

#제출 시각아이디문제언어결과실행 시간메모리
121674ly20미술 수업 (IOI13_artclass)C++17
5 / 100
62 ms3392 KiB
#include<bits/stdc++.h>
using namespace std;
#include"artclass.h"
int style(int H,int W,int R[500][500],int G[500][500],int B[500][500])
{
	int r=0,g=0,b=0;
	for(int i=0;i<500;i++)
		for(int j=0;j<500;j++)
		{
			r+=R[i][j];
			g+=G[i][j];
			b+=B[i][j];
		}
	int mg=500*500*70,md=500*500*100;
	int resp;
	if(g-mg>r && g-mg>b)resp=2;
	else if(r-mg>b && g-mg>b)resp=4;
	else if(r>=md || g>=md || b>=md)resp=1;
	else resp=3;
	return resp;
}
#Verdict Execution timeMemoryGrader output
Fetching results...