http://acm.hdu.edu.cn/showproblem.php?pid=3279

无聊题。。。

View Code
#include <iostream>
#include <algorithm>
using namespace std ;
int main()
{
    int p;
    scanf("%d",&p);
    while(p--)
    {
        int cas;
        scanf("%d",&cas);
        int a[10];
        for(int i=0;i<10;i++)
            scanf("%d",&a[i]);
        sort(a,a+10);
        printf("%d %d\n",cas,a[7]);
    }
    return 0;
} 

 

相关文章:

  • 2022-03-11
  • 2021-11-04
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2022-02-18
猜你喜欢
  • 2021-09-20
  • 2021-10-16
  • 2021-12-09
  • 2022-02-13
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案