# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
951529 | serpent_121 | Tracks in the Snow (BOI13_tracks) | C++17 | 744 ms | 342564 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 <map>
#include <set>
#include <queue>
#include <deque>
#include <numeric>
#include <cmath>
#include <cstring>
using namespace std;
typedef long long ll;
int dx[4]{1, -1, 0, 0}, dy[4]{0, 0, 1, -1};
int depth[4000][4000];
int main() {
iostream::sync_with_stdio(false);
cin.tie(0);
ll h,w; cin >> h >> w;
ll map[h][w];
for (int i = 0; i< h; i++) {
for (int j = 0; j<w; j++) {
char k; cin >> k;
if (k=='.') map[i][j] = 0;
else if (k=='R') map[i][j] = 1;
else map[i][j] = 2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |