Cpp求助
查看原帖
Cpp求助
755412
DPG_DPG123楼主2023/7/14 12:01

记录

https://www.luogu.com.cn/record/115430806

代码

# include <bits/stdc++.h>
using namespace std;
int n, ls[1100];
int main(){
    cin >> n;
    for (int i = 0;i < n;i ++) cin >> ls[i];
    sort(ls, ls+n);
    cout << ls[n-2] << endl;
    return 0;
}
2023/7/14 12:01
加载中...