initial commit
This commit is contained in:
parent
64ed848998
commit
cf3e3d6299
19
339A-HelpfulMaths/339A.cpp
Normal file
19
339A-HelpfulMaths/339A.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int i,j,temp;
|
||||
string s;
|
||||
cin>>s;
|
||||
for(i=0;i<s.length();i+=2)
|
||||
{
|
||||
for(j=i+2;j<s.length();j=j+2)
|
||||
{
|
||||
if(s[i]>s[j])
|
||||
{
|
||||
swap(s[i],s[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
cout<<s<<endl;
|
||||
}
|
Loading…
Reference in New Issue
Block a user