본문 바로가기
python-algorithm

[백준] 15351

by 무적김두칠 2021. 1. 15.

1
2
3
4
5
6
7
for _ in range(int(input())):
    cnt=0
    a=(input()).replace(" ","")
    for i in a :
        cnt+=ord(i)-64
    if cnt==100print("PERFECT LIFE")
    elseprint(cnt)
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 15596  (0) 2021.01.15
[백준] 15552  (0) 2021.01.15
[백준] 14929  (0) 2021.01.15
[백준] 14915  (0) 2021.01.15
[백준] 14910  (0) 2021.01.15

댓글