mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
5ed1cf19d0
3200-3299
22 lines
402 B
C++
22 lines
402 B
C++
#include <stdio.h>
|
|
#include <algorithm>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int i,j,n,t,b;
|
|
int a[11];
|
|
while(scanf("%d",&t)!=EOF)
|
|
{
|
|
int k=1;
|
|
while(t--)
|
|
{
|
|
scanf("%d",&b);
|
|
for(i=0;i<10;i++)
|
|
scanf("%d",&a[i]);
|
|
sort(a,a+10);
|
|
printf("%d %d\n",k++,a[7]);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|