#include <queue>
#include <cstdio>
#include <ctime>

using namespace std;

const int N = (int)1e8;
queue <int> q;
double start;

void timeStamp()
{
  printf("time = %.2f\n", (clock() - start) / CLOCKS_PER_SEC);
  start = clock();
}

int main()
{
  for (int i = 0; i < N; i++)
  {
    q.push(i);
    q.pop();
  }
  timeStamp();

  for (int i = 0; i < N; i++)
    q.push(i);
  for (int i = 0; i < N; i++)
    q.pop();
  timeStamp();

  for (int i = 0; i < N; i++)
    q.push(i);
  timeStamp();

  return 0;
}