python-algorithm

[백준] 5704

무적김두칠 2021. 1. 9. 23:05

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
 
while True:
    tmp = [0* 26
    try :
        s=sys.stdin.readline()
        if s=="*": exit()
        else:
            for i in range(len(s)-1):
                if ord(s[i])!=32 :
                    tmp[ord(s[i])-97]=1
            if sum(tmp) ==26print("Y")
            elseprint("N")
    except : exit()
cs
반응형