Skip to content

Commit

Permalink
Merge pull request #46 from shivam7366/patch-1
Browse files Browse the repository at this point in the history
codeforces problem 405-A Gravity Flip Solution
  • Loading branch information
strang3-r authored Oct 10, 2022
2 parents 3e3a031 + a1203cd commit 1460945
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions gravityflipProblem.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//codeforces problem 405-A Gravity Flip Solution
#include<bits/stdc++.h>
using namespace std;

int main (){
int n;
cin>>n;
int a[n];
for (int i=0;i<n;i++)
cin>>a[i];
sort(a,a+n);
for (int i=0;i<n;i++)
{
cout<<a[i]<<" ";
}
return 0;
}

0 comments on commit 1460945

Please sign in to comment.