본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 21734번 SMUPC의 등장

by 현장 2022. 8. 31.

- Code

s = input()

for i in s:
    cnt = str(ord(i))
    S = 0
    for j in cnt:
        S += int(j)
    print(i * S)

처음에 이해를 중간까지 못해서 좀 걸렸습니다.