# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
123168 | Mahdi_Jfri | 미술 수업 (IOI13_artclass) | C++14 | 241 ms | 15980 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//#include "grader.h"
#include "artclass.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define ld long double
const int maxn = 5e2 + 20;
const int dx[] = {0 , 0 , -1 , 1};
const int dy[] = {1 ,-1 , 0 , 0};
int t2(int x)
{
return x * x;
}
int style(int n , int m , int R[500][500] , int G[500][500] , int B[500][500])
{
vector<int> tmp1 , tmp2 , tmp3;
ld mG = 0 , mR = 0 , mB = 0;
for(int x = 0; x < n; x++)
for(int y = 0; y < m; y++)
{
mG += t2(255 - G[x][y]) + 10 * t2(R[x][y] + B[x][y]);
mR += t2(255 - R[x][y]) + 10 * t2(G[x][y] + B[x][y]);
mB += t2(255 - B[x][y]) + 10 * t2(R[x][y] + G[x][y]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |