# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
636909 | ojoConmigo | Mecho (IOI09_mecho) | C++17 | 1100 ms | 31000 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int n,s;
vector<vector<char>> grid;
vector<pair<int,int>> hives;
pair<int,int> root,obj;
vector<vector<int>> mapa;
vector<vector<bool>> visit;
vector<vector<int>> dp;
int sx[4] = {0,0,1,-1};
int sy[4] = {1,-1,0,0};
bool ok(int x, int y){
return x < n && y < n && x >= 0 && y >= 0;
}
void bfs(){
queue<pair<int,int>> cola;
for(auto h : hives){
cola.push(h);
}
while(cola.size()){
auto q = cola.front();
cola.pop();
int x = q.first;
int y = q.second;
for(int i=0; i<4; i++){
int nx = x + sx[i];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |