# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
31910 | chonka | Tracks in the Snow (BOI13_tracks) | C++98 | 2000 ms | 105520 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<iostream>
#include<stdio.h>
#include<string>
#include<queue>
using namespace std ;
#define MAXN 4007
int n , m ;
string a[ MAXN ] ;
int used[ MAXN ][ MAXN ] ;
int ans = 0 ;
int dx[ 4 ] = { 0 , 0 , 1 , -1 } ;
int dy[ 4 ] = { 1 , -1 , 0 , 0 } ;
void bfs ( ) {
queue < pair < int , int > > q ;
queue < pair < int , int > > aux ;
int i , j ;
used[ n ][ m ] = 1 ;
q.push ( make_pair ( n , m ) ) ;
while ( 1 ) {
ans ++ ;
while ( q.empty ( ) == false ) {
pair < int , int > p = q.front ( ) ;
q.pop ( ) ;
int i ;
for ( i = 0 ; i < 4 ; i ++ ) {
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |