答案

jichenkai007 2020-11-21 9:19:08 7 返回题目

#include <bits/stdc++.h> using namespace std; int a[2000]; int head,tail; void push(int x) { a[head+1]=x; tail++; } int front() { return a[head]; } void pop() { if(head>tail) head++; } int size() { return tail-head; } bool empty() { if(head==tail) { return 1; }

} int main() {

}

{{ vote && vote.total.up }}