# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
388295 | Monchito | Tracks in the Snow (BOI13_tracks) | C++14 | 1458 ms | 101784 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
#include <deque>
#include <algorithm>
using namespace std;
using ii = pair<int,int>;
int xd[] = {1,-1,0,0}, yd[] = {0,0,1,-1};
#define forn(i, x, n) for(int i = (x); i < (int)(n); i++)
const int MAXS = 4000;
int N, M;
char G[MAXS][MAXS];
bool inside(int i, int j){
return (i > -1 && j > -1 && i < N && j < M && G[i][j] != '.');
}
int main(){
scanf("%d%d",&N,&M);
forn(i,0,N) forn(j,0,M) scanf(" %c",&G[i][j]);
deque<pair<ii, int>> Q;
vector<vector<bool>> vis(N, vector<bool>(M, false));
int ans=0;
Q.push_front({{0,0},1});
while(!Q.empty()){
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |