본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 9443번 Arrangement of Contest

by 현장 2024. 10. 11.

-Code

al = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
input_arr = set([input()[0] for _ in range(int(input()))])
res = 0

for i in range(26):
    if al[i] not in input_arr:
        break
    res += 1
    
print(res)