delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

19
1.1138.cpp Normal file
View File

@ -0,0 +1,19 @@
#include<cstdio>
#include<algorithm>
using namespace std;
const int maxn=10005;
int n,k,a[maxn];
int main()
{
scanf("%d%d",&n,&k);
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
a[0]=-1;
sort(a+1,a+1+n);
for(int i=1;i<=n;i++)
{
if(a[i]!=a[i-1]) k--;
if(!k) { printf("%d\n",a[i]); return 0; }
}
puts("NO RESULT");
return 0;
}