// hh 表示队头,tt表示队尾int q[N], hh = 0, tt = -1;
// 向队尾插入一个数q[ ++ tt] = x;
// 从队头弹出一个数hh ++ ;
// 队头的值q[hh];
// 判断队列是否为空if (hh <= tt){
}