# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
798440 | arijit_biswas | Tracks in the Snow (BOI13_tracks) | C++17 | 669 ms | 119516 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
using namespace std;
// void setIO(string filename) {
// freopen((filename + ".in").c_str(), "r", stdin);
// freopen((filename + ".out").c_str(), "w", stdout);
// }
int n, m;
vector<vector<char>> snow;
vector<vector<int>> dis;
int ans;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
bool check(int x, int y) {
return (x >= 0 && x < n && y >= 0 && y < m && snow[x][y] != '.');
}
void bfs() {
dis.assign(n, vector<int>(m, 1e9));
deque<pair<int, int>> dq;
dis[0][0] = 0;
dq.push_back({0, 0});
while (!dq.empty()) {
auto node = dq.front(); dq.pop_front();
int i = node.first, j = node.second;
ans = max(ans, dis[i][j]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |