Programming/Python & Data Structures
[Baekjoon/Python3] 15813번 너의 이름은 몇 점이니?
HooNeee
2020. 12. 8. 16:47
[Baekjoon/Python3] 15813번 너의 이름은 몇 점이니?
15813번: 너의 이름은 몇 점이니?
첫 번째 줄에 이름의 길이가 주어진다. (단, 길이는 100자 이하이다) 두 번째 줄에 이름이 띄어쓰기 없이 대문자로 주어진다.
www.acmicpc.net
n = int(input())
total = 0
for i in input():
total += ord(i) - 64
print(total)