#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<Windows.h>
#include<stdio.h>
#define N 100
void statisticage(int people2[N],int count1[N])
{
for (int i = 0; i < N; i++)
{
if (people2[i] != 0)
{
count1[i]+=1;
}
for (int j = i + 1; j < N; j++)
{
if (people2[i]!=0 &&people2[i] == people2[j])
{
people2[j] = 0;
count1[i]+=1;
}
}
}
}
int searchmaxtime( int count2[N], int statistinum2[N])
{
int max = 0,k=0;
for(int i = 0; i < N; i++)
{
if (max < count2[i])
{
max = count2[i];
}
}
for (int i = 0; i < N; i++)
{
if (max == count2[i])
{
statistinum2[k++] = i;
}
}
return k;
}
void main()
{
int people[N] =
{
49, 20, 20, 30, 23, 34, 42, 43, 12, 43,