# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
897416 | Faisal_Saqib | Art Class (IOI13_artclass) | C++17 | 45 ms | 3668 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"
#include <iostream>
using namespace std;
int style(int h, int w, int R[500][500], int G[500][500], int B[500][500])
{
// return 1;
int dark=0;
for(int i=0;i<h;i++)
{
for(int j=0;j<w;j++)
{
dark+=(max(R[i][j],max(B[i][j],(G[i][j])))>=58);
}
}
// cout<<dark<<endl;
int hp=h*w + 2;
hp/=2;
if(dark>=(hp))
{
return 2;
}
else
{
return 1;
}
// return ((mi>=100)?2:1);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |