# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
888481 | bashNewbie | Tracks in the Snow (BOI13_tracks) | C++17 | 2103 ms | 156644 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 <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
using namespace std;
#define fast_io ios::sync_with_stdio(0), cin.tie(0)
#define vi vector<int>
#define vvi vector<vi>
#define vs vector<string>
#define pb push_back
int n, m;
vs s;
inline bool in(vi& v) {
return -1 < v[0] && v[0] < n && -1 < v[1] && v[1] < m;
}
inline char f(vi& v) {
return s[v[0]][v[1]];
}
inline int g(vi& v) {
return v[0]*m+v[1];
}
inline bool bad(vi& v) {
return f(v) == '.';
}
inline bool same(vi& v, vi& w) {
return f(v) == f(w);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |