Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Newton4566
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-24 17:55:14
#include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
string input;
cin >> input;
set<char> sentence(input.begin(), input.end());
\
bool first = true;
for (char c : sentence) {
if (!first) {
cout << " ";
}
cout << c;
first = false;
}
cout << endl;
return 0;
}