Submission #140072

#TimeUsernameProblemLanguageResultExecution timeMemory
140072cfalasArt Class (IOI13_artclass)C++14
0 / 100
92 ms3324 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]) {
	double tot = 0;
	double totr=0, totg=0, totb=0;
	for(int i=h/3;i<2*h/3;i++){
		for(int j=0;j<w;j++){
			tot+=r[i][j]+g[i][j]+b[i][j];
			totr+=r[i][j];
			totg+=g[i][j];
			totb+=b[i][j];
		}
	}
	cout<<totr<<" "<<totg<<" "<<totb<<endl;
	if(totg > totb && totb<totr) return 2;
	return 1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...