백준 10809 (파이썬)

김덕현·2021년 6월 5일
1

BAEKJOON

목록 보기
43/62

1.문제

https://www.acmicpc.net/problem/10809

2.코드

S=input()
s=list(range(97,123))
for i in range(len(s)):
    if chr(s[i]) in S:
        print(S.index(chr(s[i])),end=' ')
    else :
        print(-1,end=' ')

3.코드해설

profile
BAEKJOON STUDYING

0개의 댓글