Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: august

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-19 21:29:26

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0)->sync_with_stdio(0);
    int a[256]={};
    string s;
    cin>> s;
    for (auto x : s) a[x]++; 
    for (int i=0; i<256; i++) {
        if (a[i] > 0) cout<< char(i)<< " ";
    }
}