# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
290202 | kshitij_sodani | Art Class (IOI13_artclass) | C++14 | 128 ms | 3320 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 <bits/stdc++.h>
using namespace std;
#define a first
#define b second
#define pb push_back
typedef long long llo;
#include "artclass.h"
mt19937 rng;
int style(int n,int m, int aa[500][500], int bb[500][500], int cc[500][500]) {
rng=mt19937(chrono::steady_clock::now().time_since_epoch().count());
int su[3];
su[0]=0;
su[1]=0;
su[2]=0;
int x=0;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
su[0]+=aa[i][j];
su[1]+=bb[i][j];
su[2]+=cc[i][j];
if(aa[i][j]>220 and bb[i][j]>220 and cc[i][j]>220){
x+=1;
}
}
}
if(su[1]>max(su[0],su[2])){
return 2;
}
if(x>30000){
return 1;
}
if(su[0]>250000*100){
return 4;
}
return 3;
}
/*int main(){
return 0;
}*/
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |