제출 #679850

#제출 시각아이디문제언어결과실행 시간메모리
679850bashkort미술 수업 (IOI13_artclass)C++17
0 / 100
79 ms9044 KiB
#include "artclass.h" #include <bits/stdc++.h> using namespace std; int R[500][500], G[500][500], B[500][500]; int dist(int i, int j, int x, int y) { return abs(R[i][j] - R[x][y]) + abs(B[i][j] - B[x][y]) + abs(G[i][j] - G[x][y]); } int same(int i, int j, int x, int y) { return dist(i, j, x, y) <= 20; } int style(int n, int m, int R[500][500], int G[500][500], int B[500][500]) { memcpy(::R, R, sizeof(::R)), memcpy(::G, G, sizeof(::G)), memcpy(::B, B, sizeof(::B)); return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...