# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
751985 | cwza | Tracks in the Snow (BOI13_tracks) | C++17 | 1022 ms | 147836 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;
using ll = long long;
void IO(string name = "") {
cin.tie(0)->sync_with_stdio(0);
if (name.size()) {
freopen((name + ".in").c_str(), "r", stdin);
freopen((name + ".out").c_str(), "w", stdout);
}
}
const int inf = 1e9+7;
vector<string> grid;
int H, W;
bool is_valid(int row, int col) {
if(row>=0 && row<H && col>=0 && col<W && grid[row][col]!='.') return true;
return false;
}
int main() {
// IO("pcb");
cin >> H >> W;
grid.resize(H);
for(int i = 0; i < H; i++) cin >> grid[i];
vector<vector<int>> dist(H, vector<int>(W, inf));
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |