Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: SXLENG.S

Problemset: เรียงสตริง

Language: cpp

Time: 0.002 second

Submitted On: 2025-12-13 17:15:35

#include <iostream>
#include <string>

using namespace std;

int main() {
	string  s;
	cin>>s;
	
	bool box[123] = {0};
	for (int i=0;i<s.length();i++){
		box[s[i]] = true; //true=1
	}
	
	for (int i=0;i<123;i++){
		if (box[i] == true){
			cout<<char(i)<<" ";
		}
	}
}