# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
354799 | talant117408 | Art Class (IOI13_artclass) | C++17 | 66 ms | 3328 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "artclass.h"
#ifndef EVAL
#include "grader.cpp"
#endif
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
#define precision(n) fixed << setprecision(n)
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define eps (double)1e-9
#define PI 2*acos(0.0)
#define endl "\n"
#define sz(v) int((v).size())
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define do_not_disturb ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define OK cout << "OK" << endl;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]){
//int green = 0, white = 0;
//set <int> st;
int mx = 0;
for(int i = 0; i < H; i++){
for(int j = 0; j < W; j++){
// st.insert(256*256*R[i][j]+256*G[i][j]+B[i][j]);
//if(G[i][j] > R[i][j] && G[i][j] > B[i][j])
// green++;
//if(min(G[i][j], min(R[i][j], B[i][j])) > 175) white++;
mx = max(mx, (R[i][j]+G[i][j]+B[i][j])/3);
}
}
if(mx > 175) return 1;
if(mx > 150) return 2;
if(mx > 90) return 4;
return 3;
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |