码迷,mamicode.com
首页 > 其他好文 > 详细

HDU2561 第二小整数

时间:2018-10-04 12:56:06      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:amp   class   mat   str   math   bsp   ret   algo   algorithm   

#include<cmath>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int main(void)
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        int n;
        scanf("%d",&n);
        int a[n];
        for(int  i = 0; i < n; i++)
            scanf("%d",&a[i]);
        sort(a,a+n);
        printf("%d\n",a[1]);
    } 
    return 0; 
}

 

HDU2561 第二小整数

标签:amp   class   mat   str   math   bsp   ret   algo   algorithm   

原文地址:https://www.cnblogs.com/AC-AC/p/9742001.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!