본문 바로가기
python-algorithm

백준 10384 팬그램

by 무적김두칠 2021. 12. 8.

1
2
3
4
5
6
7
8
9
10
11
for _ in range(int(input())):
    s=input()
    s=s.lower()
    tmp=[0]*26
    for i in s:
        if i.isalpha():
            tmp[ord(i)-97]+=1
    if min(tmp)>=3print("Case %d: Triple pangram!!!"%(_+1))
    elif min(tmp)>=2print("Case %d: Double pangram!!"%(_+1))
    elif min(tmp)>=1print("Case %d: Pangram!"%(_+1))
    else :print("Case %d: Not a pangram"%(_+1))
cs
반응형

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

백준 11728 배열 합치기  (0) 2021.12.08
백준 10610 30  (0) 2021.12.08
백준 9417 최대 GCD  (0) 2021.12.08
백준 11004 k번째 수  (0) 2021.12.06
백준 10867 중복 빼고 정렬하기  (0) 2021.12.06

댓글