# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
869111 | normankr07 | Art Class (IOI13_artclass) | C++17 | 61 ms | 3620 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "artclass.h"
#include <bits/stdc++.h>
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500])
{
long long ans = 0;
for (int x = 0; x < H; x++)
for (int y = 0; y < W - 1; y++)
{
int RR = abs(R[x][y] - R[x][y + 1]);
int GG = abs(G[x][y] - G[x][y + 1]);
int BB = abs(B[x][y] - B[x][y + 1]);
ans += (RR + GG + BB);
}
ans /= (H * (W - 1));
std::cerr << "inf: " << ans << '\n';
if (ans <= 9)
return 1;
if (ans <= 53)
return 2;
if (ans <= 89)
return 3;
return 4;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |