정올/beginner
정올 1535 문자열 - 단어집합2
juwanseo
2025. 1. 9. 15:15
y=[]
x=[]
while 1:
a=(input().split())
if a[0]=='END':
break
for i in a:
if i not in x:
x.append(i)
y.append(' '.join(x))
for z in y:
print(z)
정답