发布网友 发布时间:2022-05-06 08:16
共1个回答
热心网友 时间:2023-10-08 18:59
#include <stdio.h>
int main(void)
{
int a[1000];
int b[1000] = {0};
int n,k;
int i;
int count = 0;
scanf("%d%d",&n,&k);
for(i = 0; i < n; i++)
{
scanf("%d",&a[i]);
b[a[i]]++;
}
for(i = 0; i < 1000; i++)
{
if(b[i] != 0)
count++;
if(count == 3)
break;
}
if(count == 3)
printf("%d\n",i);
else
printf("NO RESULT\n");
}