# 第二小整数

Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10766    Accepted Submission(s): 6548

Problem Description

Input

Output

Sample Input

2

2

1 2

3

1 1 3

Sample Output

2

1

Author

yifenfei

Source

``` 1 #include <bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5     int T,n;
6     int a[15];
7     while(cin>>T)
8     {
9         while(T--)
10         {
11             cin>>n;
12             for(int i=0;i<n;i++)
13                 cin>>a[i];
14                 sort(a,a+n);
15                 cout<<a[1]<<endl;
16         }
17     }
18     return 0;
19 }```

792 篇文章62 人订阅

0 条评论

## 相关文章

Railroad Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (...

3525

### POJ--Strange Way to Express Integers

Strange Way to Express Integers Time Limit: 1000MS Memory Limit: 131072K ...

2827

### HDU 1013 Digital Roots【字符串，水】

Digital Roots Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/3276...

2774

### HDUOJ---------(1045)Fire Net

Fire Net Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (...

3415

### 3212: Pku3468 A Simple Problem with Integers

3212: Pku3468 A Simple Problem with Integers Time Limit: 1 Sec  Memory Limit: 12...

3318

### hdu 4315 Climbing the Hill（阶梯博弈转nim博弈）

Climbing the Hill Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/...

36211

### hust--------The Minimum Length (最短循环节)(kmp)

F - The Minimum Length Time Limit:1000MS     Memory Limit:131072KB     64bit I...

3043

2904

### hduoj---Tempter of the Bone

Tempter of the Bone Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 6553...

2946

### HDU-1003 Max Sum(动态规划，最长字段和问题)

Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (J...

5885