# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
835354 | mohammad_kilani | Mecho (IOI09_mecho) | C++17 | 143 ms | 6932 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define oo 1000000010
const int N = 810;
int n , s;
char grid[N][N];
int cost[N][N];
int dr[] = {0 , 1, 0 , -1};
int dc[] = {1 , 0 , -1 , 0};
int sr , sc , er , ec;
int cost2[N][N];
void BFSH(){
queue < pair< int , int > > q;
memset(cost , -1, sizeof(cost));
for(int i = 0;i < n;i++){
for(int j = 0 ;j < n;j++){
if(grid[i][j] == 'H'){
q.push(make_pair(i , j));
cost[i][j] = 0;
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |