[백준/C++] 9205 맥주 마시면서 걸어가기
https://www.acmicpc.net/problem/9205코드#include #include #include #include using namespace std;#define MAX 101#define CAN_MOVE 1000#define FASTIO ios::sync_with_stdio(false); cin.tie(NULL);typedef pair pi;int t, n;bool visit[MAX];pi h, f;vector store;bool bfs() { queueq; q.push(h); while (!q.empty()) { int nx = q.front().first; int ny = q.front().second; q.pop(); if (abs(f.first - nx) + abs(f..