# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
290210 | kshitij_sodani | 미술 수업 (IOI13_artclass) | C++14 | 72 ms | 3332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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]>n*m*150){
return 2;
}
if(x>30000){
return 1;
}
if((su[1]+su[2])/2>n*m*150){
return 4;
}
return 3;
}
/*int main(){
return 0;
}*/
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |