# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
89161 | asifthegreat | Art Class (IOI13_artclass) | C++14 | 80 ms | 66560 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 <bits/stdc++.h>
using namespace std;
int style(int H,int W,int R[500][500],int G[500][500],int B[500][500])
{
int sum1 = 0,sum2=0,sum3=0;
for(int i = 0; i < W;i++){
for(int j = 0; j < H;j++){
sum1 += R[i][j];
}
}
for(int i = 0; i < W;i++){
for(int j = 0; j < H;j++){
sum2 += G[i][j];
}
}
for(int i = 0; i < W;i++){
for(int j = 0; j < H;j++){
sum3 += B[i][j];
}
}
if(sum2 >= sum1 and sum2 >= sum3)return 2;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |