#include #include #include #include using namespace std; int n, k;//수빈이위치 n, 동생의위치 k bool visited[100001];//방문표시를 위한 배열 int result=0;//빠른시간을 저장할 변수 int arr[100001];//이동한 순서를 저장하기 위한 배열 vectorv;//이동순서 출력에 사용할 vector void bfs() { queue q;//queue 선언 q.push(make_pair(n, 0));//n과 0을 push visited[n] = true;//방문표시 while (!q.empty()) { int a = q.front().first;//a에는 현재위치를 저장 int b = q.front().seco..