백준 20355번: Caesar Word Salad #Python

ColorlessDia·2024년 5월 18일

algorithm/baekjoon

목록 보기
180/807
w = input()

alphabat_count = [0] * 26

for char in w:
    index = ord(char) - ord('a')

    alphabat_count[index] += 1

if alphabat_count.count(0) != 0:
    print(alphabat_count.count(0))
else:
    print('impossible')

0개의 댓글