# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
234110 | tinjyu | Art Class (IOI13_artclass) | C++14 | 97 ms | 3344 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "artclass.h"
long long int green,white;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
for(int i=0;i<H;i++)
{
for(int j=0;j<W;j++)
{
if(R[i][j]+G[i][j]+B[i][j]>720)white++;
if(G[i][j]-R[i][j]-B[i][j]>0 && G[i][j]>=80)green++;
}
}
if(green*100>H*W)return 2;
if(white*4>H*W)return 1;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |