Submission

Status:

[PPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: comprogslayer

Problemset: สตริงซ้ำซ้ำ

Language: python

Time: 0.014 second

Submitted On: 2025-12-21 00:08:01

x = input()
y = input()
ans = []
for e in x :
    if e in y and e not in ans :
        ans.append(e)
ans.sort()
print(' '.join(ans))