# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
843182 | Youssif_Elkadi | Tracks in the Snow (BOI13_tracks) | C++17 | 466 ms | 66652 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 <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double ld;
#define pb push_back
#define sz(x) int(x.size())
#define all(x) x.begin(), x.end()
#define F first
#define S second
const int N = 4000;
int n, m, ans = 1;
char c[N][N];
bool fc[N][N];
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
vector<pair<int, int>> f, r;
bool vis[N][N];
void dfs(int i, int j)
{
for (int ii = 0; ii < 4; ii++)
{
int nx = i + dx[ii], ny = j + dy[ii];
if (nx < 0 || ny < 0 || nx >= n || ny >= m)
continue;
if (c[nx][ny] == c[0][0])
{
if (!fc[nx][ny] && !vis[nx][ny]){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |