Submission #121675

#TimeUsernameProblemLanguageResultExecution timeMemory
121675ly20Art Class (IOI13_artclass)C++17
2 / 100
161 ms3448 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/2 || b>=md)resp=1; else resp=3; return resp; }
#Verdict Execution timeMemoryGrader output
Fetching results...