# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
422161 | ioi | Tracks in the Snow (BOI13_tracks) | C++14 | 1643 ms | 122984 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std ;
int h , w ;
char arr[4010][4010];
int dis[4010][4010];
int ans = 0 ;
pair<int , int > cor [] = {{1 , 0} , {-1 , 0} , {0 , 1} , {0 , -1}} ;
void bfs(){
deque<pair<int , int > > d ;
dis[0][0] = 1 ;
d.push_back({0 , 0});
while(d.size()){
auto fr = d.front();
d.pop_front();
ans = max(ans , dis[fr.first][fr.second]);
for(int ii = 0 ; ii < 4 ; ii ++){
int nx = cor[ii].first + fr.first ;
int ny = cor[ii].second + fr.second ;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |