python-algorithm

[백준] 15351

무적김두칠 2021. 1. 15. 10:49

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
반응형