A strange lift HDU - 1548 (超詳細!!!!)

#include<stdio.h> #include<queue> #include<string.h> using namespace std; int dir[2] = { -1,1 }; //只有兩個方向移動 int n, s, e, i; int lift[250], vis[250];//vis記錄位置 struct node { //移動,步數 int x, step; }a; i
相關文章
相關標籤/搜索