본문 바로가기
python-algorithm

[백준] 5704

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

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

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

[백준] 5789  (0) 2021.01.10
[백준] 5724  (0) 2021.01.09
[백준] 5691  (0) 2021.01.09
[백준] 5656  (0) 2021.01.09
[백준] 5622  (0) 2021.01.09

댓글