# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
897414 | Sir_Ahmed_Imran | Art Class (IOI13_artclass) | C++17 | 52 ms | 5072 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.
///~~~LOTA~~~///
#include "artclass.h"
#include <bits/stdc++.h>
using namespace std;
#define nl '\n'
#define ff first
#define ss second
#define ll long long
#define append push_back
#define pii pair<int,int>
#define all(x) (x).begin(),(x).end()
#define N 10000000
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int style(int n, int m, int R[500][500], int G[500][500], int B[500][500]){
ll r,g,b;
for(int i=r=g=b=0;i<n;i++){
for(int j=0;j<m;j++){
r+=R[i][j];
g+=G[i][j];
b+=B[i][j];
}
}
if(g>r+b) return 2;
return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |