# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1171863 | felipehanada | Tracks in the Snow (BOI13_tracks) | C++20 | 845 ms | 70500 KiB |
#include <bits/stdc++.h>
using namespace std;
char grid[4000][4000];
int h, w;
vector<pair<int, int>> border;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> h >> w;
for (int i=0; i<h; i++) {
for (int j=0; j<w; j++) {
cin >> grid[i][j];
}
}
border.push_back({0, 0});
char animal = grid[0][0];
char other = ((animal == 'R') ? 'F' : 'R');
int ans = 0;
while (!border.empty()) {
ans++;
queue<pair<int, int>> q;
while (!border.empty()) {
q.push(border.back());
border.pop_back();
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |