解题思路:随便写写
注意事项:
参考代码:
#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main()
{
int c;
cin>>c;
while(c--){
int n,j;
cin>>n;
vector<int> a;
while(n--){
cin>>j;
a.push_back(j);
}
sort(a.begin(),a.end());
vector<int>::iterator it;
it=a.begin()+1;
cout<<*it<<endl;
}
return 0;}
0.0分
0 人评分
点我有惊喜!你懂得!浏览:4109 |
点我有惊喜!你懂得!浏览:2214 |
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C++代码)(手动优化一下计算)浏览:1284 |
分糖果 (C++代码)浏览:1447 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:520 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:661 |
三角形 (C++代码)记忆化搜索浏览:1234 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2169 |
C二级辅导-阶乘数列 (C语言代码)浏览:521 |
川哥的吩咐 (C语言代码)浏览:611 |