# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1001006 | vjudge1 | Tracks in the Snow (BOI13_tracks) | C++17 | 422 ms | 118800 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 i64 = long long;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int h, w;
std::cin >> h >> w;
std::vector<std::string> g(h);
for (auto &s : g) {
std::cin >> s;
}
std::vector dis(h, std::vector<int>(w, -1));
dis[0][0] = 0;
std::deque<std::tuple<int, int>> q;
q.push_back({0, 0});
int ans = 0;
while (q.size()) {
auto [x, y] = q.front();
q.pop_front();
ans = std::max(ans, dis[x][y]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |