标签:include bre 成绩 ret stream highlight return algo space
#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int main() { int n,j=0,k,i,t=0; cin >> n; int a[10000]; while(n--) { cin >> i; a[j++]=i; } sort(a,a+j);cin >> k; for(i=j-1;i>=0;--i) { t++; if(a[i]==k) { cout << t << endl; break; } } return 0; }
标签:include bre 成绩 ret stream highlight return algo space
原文地址:https://www.cnblogs.com/wbyzs/p/10023316.html