Submission #290202

#TimeUsernameProblemLanguageResultExecution timeMemory
290202kshitij_sodaniArt Class (IOI13_artclass)C++14
12 / 100
128 ms3320 KiB
#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 timeMemoryGrader output
Fetching results...