word = input()
alphabet = {'a':-1, 'b':-1, 'c':-1,'d':-1,'e':-1,'f':-1,'g':-1,'h':-1,'i':-1,'j':-1,'k':-1,'l':-1,
'm':-1,'n':-1,'o':-1,'p':-1,'q':-1,'r':-1,'s':-1,'t':-1,'u':-1,'v':-1,'w':-1,'x':-1,'y':-1,'z':-1}
for i in word:
alphabet[i] = word.index(i)
output = ''
for _, value in alphabet.items():
output += str(value)+ ' '
print(output)
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
Baekjoon 1157번(python) (1) | 2019.04.29 |
---|---|
Baekjoon 2675번(python) (0) | 2019.04.29 |
Baekjoon 11654번(python) (0) | 2019.04.29 |
Baekjoon 10039번(python) (0) | 2019.04.28 |
Baekjoon 2920번(python) (0) | 2019.04.28 |