# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
475812 | clams | Tracks in the Snow (BOI13_tracks) | C++17 | 910 ms | 123128 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
* Author: bubu2006
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int H, W;
cin >> H >> W;
vector<string> m(H);
for(int i = 0; i < H; i++) cin >> m[i];
vector<int> dy = {0, 0, -1, 1};
vector<int> dx = {1, -1, 0, 0};
const int INF = 1e8;
vector<vector<int>> d(H, vector<int>(W, INF));
deque<pair<int, int>> q;
q.push_back({0, 0});
d[0][0] = 1;
int ans = 0;
while(!q.empty()) {
pair<int, int> cur = q.front();
int y = cur.first;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |