1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| #include<iostream> using namespace std;
const int N = 1e5;
int hh, tt; int q[N];
int main() { if((tt + 1) % N == hh) { } if(hh == tt) { } q[tt] = 5; tt = (tt + 1) % N; hh = (hh + 1) % N; return 0; }
|