摘要:
#include <iostream>using namespace std;int visited[100001];int a[100001];int que[100001];int move[3][2] = {{1,-1},{1,1},{2,0}};int main(){ int n,k; cin>>n>>k; int front,rear,temp; int next; front = 0; rear = 1; a[front] = n; memset(visited,0,sizeof(visited)); memset(que,0,sizeof(qu 阅读全文