# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
757467 | The_Samurai | Tracks in the Snow (BOI13_tracks) | C++17 | 2085 ms | 165656 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;
int INF = 1e9;
vector<int> dx = {1, -1, 0, 0};
vector<int> dy = {0, 0, 1, -1};
int main() {
ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
clock_t startTime = clock();
int n, m;
cin >> n >> m;
vector<vector<char>> a(n, vector<char>(m, '.'));
auto nw = a;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin >> a[i][j];
}
}
if (max(n, m) == 1) {
cout << 1;
return 0;
}
vector<pair<int, int>> can = {{0, 0}};
vector<vector<bool>> vis(n, vector<bool>(m));
char x = a[0][0];
nw[0][0] = x;
vis[0][0] = true;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |