# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
971869 | pete555 | Tracks in the Snow (BOI13_tracks) | C++17 | 866 ms | 270540 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define pi pair<int,int>
#define ll long long
#define pb push_back
#define pf push_front
const int MOD = 1e9+7;
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
int main()
{
cin.tie(0)->sync_with_stdio(false);
int n, m;
cin >> n >> m;
string s[n];
for(int i=0; i<n; i++)
cin >> s[i];
deque<pi> q;
vector<vector<int>> d(n, vector<int>(m));
vector<vector<bool>> vis(n, vector<bool>(m));
d[0][0] = 1;
q.pb({0, 0});
int ans = 0;
while(q.size()){
pi u = q.front();
q.pop_front();
if(vis[u.first][u.second]) continue;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |