# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
689080 | Anonymous_Guys | Tracks in the Snow (BOI13_tracks) | C++17 | 813 ms | 125908 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;
#define pb push_back
#define ii pair<int, int>
const int mxN = 5e3;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
int n, m;
string s[mxN];
int ans[mxN][mxN];
bool check(int x, int y) {
return (x >=0 && x < n && y >= 0 && y < n && s[x][y] != '.');
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> n >> m;
for (int i = 0; i < n; ++i) cin >> s[i];
deque<ii> dq;
dq.pb({0, 0});
ans[0][0] = 1;
int kq =0 ;
while(dq.size()) {
ii it = dq.front();
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |