# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1012510 | amirhoseinfar1385 | Art Class (IOI13_artclass) | C++17 | 42 ms | 7516 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>
using namespace std;
const int maxn=500+10;
int vis[maxn][maxn],all[maxn][maxn],n=500;
void dfs(int i,int j){
if(i<1||i>n||j<1||j>n||vis[i][j]==1||all[i][j]==0){
return ;
}
vis[i][j]=1;
for(int a=-1;a<=1;a++){
for(int b=-1;b<=1;b++){
dfs(i+a,j+b);
}
}
}
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |