# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
38345 | funcsr | 미술 수업 (IOI13_artclass) | C++14 | 137 ms | 3724 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "artclass.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <queue>
#include <string>
#include <cassert>
using namespace std;
typedef pair<int, int> P;
#define rep(i, n) for (int i=0; i<(n); i++)
#define all(x) x.begin(), x.end()
#define pb push_back
#define INF 1005141919
#define _1 first
#define _2 second
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
int sum = 0, sum_green = 0;
rep(y, H) rep(x, W) {
sum += R[y][x];
sum += G[y][x];
sum += B[y][x];
sum_green += G[y][x];
}
sum/=W*H;
sum/=3;
sum_green/=W*H;
return 4;
//cout<<"sum="<<sum<<", green="<<sum_green<<"\n";
//if (sum > 140) return 1;
//if (sum_green > sum+10) return 2;
//else return 3;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |