#include <stdio.h>
#include <stdlib.h>
#define N 200
#define M 50
typedef struct user
{
int intime;
int outtime;
int endtime;
}USER;
typedef struct server
{
int flt;
int servetime;
}SER;
void push(int);
USER pop(int);
void display();
USER str[N];
int front = 0;
int rear = 0;
void push(int time)
{
str[rear].intime = time;
rear++;
}
USER pop(int time)
{
str[front].outtime = time;
return str[front++];
}
void display()
{
int t = 0;
int k,m;
int servenum,numper;
USER user[M];
SER ser[M];
int servet[M];
printf("请输入服务器的个数:");
scanf("%d",&servenum);
for(k = 0; k < servenum;k++)
{
printf("请输入第%d个服务器的服务时间:",k+1);
scanf("%d",&ser[k].servetime);
ser[k].flt = 0;
}
for(k = 0; k < servenum; k++)
{
servet[k] = ser[k].servetime;
}
printf("请输入每分钟进入的电话数:");
scanf("%d",&numper);
int i = 0;