2019-05-27
18:07:06
加油,坚持!!!
水题
#include <bits/stdc++.h> using namespace std; int a[100]; int main() { int t; scanf("%d", &t); while(t--) { int n; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); } sort (a, a + n); cout << a[1] << endl; } return 0; }