Submission
Status:
[-SSSSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: Putter53fr
Problemset: เรียงสตริง
Language: cpp
Time: 0.003 second
Submitted On: 2026-07-02 18:54:21
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
string a;
cin>>a;
for (int i=0; i<a.length(); i++) {
for (int j=i+1;j<a.length();j++) {
char temp;
if (a[i]>a[j]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
cout<<a;
}