算法训练 队列

#include<iostream> #include<string> using namespace std; const int n = 100005; int head, tail; string queue[n]; void enqueue(string name) { queue[tail++] = name;//tail队尾的后一位 } string dequeue() { ret
相关文章
相关标签/搜索