Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Newton4566
Problemset: เรียงสตริง
Language: cpp
Time: 0.005 second
Submitted On: 2026-10-13 22:00:28
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string str;
cin >> str;
set a(str.begin(), str.end());
bool first = true;
for (char c : a) {
if (!first) cout << ' ';
cout << c;
first = false;
}
return 0;
}