405A - Gravity Flip
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
using vi = vector<int>;
int main(void)
{
int n;
vi v;
cin >> n;
v.resize(n);
for (auto &x : v)
cin >> x;
sort(v.begin(), v.end());
for (auto x : v)
cout << x << " ";
return 0;
}