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

[백준/파이썬] 15813번 너의 이름은 몇 점이니?

by 현장 2022. 8. 16.

-Code

n = int(input())
name = input()
res = 0

for i in range(n):
    res += ord(name[i]) - ord('A') + 1

print(res)