Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41137 | Andrew宥杨 | 练59.1 第n大的数 | C++ | No Test Data | 0 MS | 0 KB | 185 | 2024-02-19 15:47:39 |
#include<bits/stdc++.h> using namespace std; int a[10]={99,200,95,87,98,-12,30,87,75,-25}; int main(){ int n; cin>>n; sort(a,a+n,greater<int>()); cout<<a[n-1]; return 0; }