摘要: 1、队列 const int N=1e5; //定义队列大小 int que[N], head,tail; //队头队尾指针,队列大小为tail-head+1 //head++; 弹出对头,head<=tail //queue[head]; //读对头数据 //que[++tail] = data; 阅读全文
posted @ 2024-05-07 22:56 cxy8 阅读(1) 评论(0) 推荐(0) 编辑