https://www.acmicpc.net/problem/13549 진짜 넘 어려웠어이모티콘 문제푼거처럼 할려했는데 #include #include using namespace std;int n, s;bool visited[100001];void bfs(int temp);int main(){ cin >> n >> s; bfs(n);}void bfs(int temp){ queuepairint, int>> q; q.push(make_pair(temp, 0)); visited[temp] = true; while (!q.empty()) { // 고려해야 하는건 위치와 시간 int x = q.front().first; // 위치 int ..