for i in range(int(input())):
alpha = [1] * 26
ans = 0
txt = input()
for j in txt:
alpha[ord(j) - 65] = 0
for num, txt in enumerate(alpha):
if txt == 1:
ans += num + 65
print(ans)
'Algorithm > String' 카테고리의 다른 글
[백준] 9935번 문자열 폭발 (0) | 2021.02.08 |
---|---|
[백준] 1764번 듣보잡 (0) | 2021.02.08 |
[백준] 1213번 팰린드롬 만들기 (0) | 2021.01.08 |
[백준] 2941번 크로아티아 알파벳 (0) | 2020.11.25 |
[백준] 9012번 괄호 (0) | 2020.11.25 |
댓글