#include using namespace std; #include #include int main() { int a; cin >> a; for(int i=0;i>b; vector vec(b); for(int j=0;j> vec.at(j); } sort(vec.begin(),vec.end()); reverse(vec.begin(),vec.end()); for(int k=0;k