-
[python]백준 문자가 몇갤까 7600번알고리즘 문제풀이/백준(파이썬) 2023. 6. 1. 23:37
코드
import sys sys.stdin = open("7600.txt", "r") w=['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] while True: q=input().upper() s=0 if q=="#": break for i in set(q): if i in w: s+=1 print(s)
링크
https://www.acmicpc.net/problem/7600
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 전북대학교 14624번 (0) 2023.06.03 [python]백준 Metronome 27389번 (0) 2023.06.02 [python]백준 2의 제곱인가? 11966번 (0) 2023.05.31 [python]백준 팀명 정하기 28114번 (0) 2023.05.30 [python]백준 녹색거탑 24723번 (0) 2023.05.29