제출 #29633

#제출 시각아이디문제언어결과실행 시간메모리
29633aybalaArt Class (IOI13_artclass)C++11
5 / 100
120 ms3648 KiB
#include "artclass.h"
#include<bits/stdc++.h>
#define fori(a,b,c) for(int a=b; a<c; a++)
#define ford(a,b,c) for(int a=b; a>=c; a++)
#define pb push_back
#define pq priority_queue
#define fi first
#define se second
#define pii pair<int,int>
#define mp make_pair
using namespace std;
int h,w;

int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
	h=H;
	w=W;
	int g=0,r=0,b=0;
	fori(i,0,h){
		fori(j,0,w){
			r+=R[i][j];
			g+=G[i][j];
			b+=B[i][j];
		}
	}
	if(g+b>=r && g>=b)
		return 2;
	return 4;
}
#Verdict Execution timeMemoryGrader output
Fetching results...