test.cpp
an anonymous user
·
C++
#include <bits/stdc++.h>
using namespace std;
void solve(){
int n;
cin>>n;
vector<int> arr(n);
for(int i=0;i<n;i++){
cin>> arr[i];
}
sort(arr.begin(),arr.end());
for(auto it: arr){
cout << it<< "-";
}
cout << endl;
}
int main() {
int t;
cin>>t;
while(t--){
solve();
}
return 0;
}
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.