Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 백준
- 사칙연산
- php
- misc
- cryptography
- Web
- SuNiNaTas
- Forensics
- 써니나타스
- N0Named
- 수학
- MySQL
- Network
- CTF
- 구현
- C
- Digital Forensics
- 인코그니토
- wargame
- Incognito
- writeup
- xcz.kr
- Web Hacking
- Python
- 문자열
- 정렬
- HackCTF
- Text
- 그리디 알고리즘
- Database
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 7600번 문자가 몇갤까 본문
[Baekjoon/Python3] 7600번 문자가 몇갤까
7600번: 문자가 몇갤까
각 줄마다 출몰한 알파벳의 개수를 출력하면 된다.
www.acmicpc.net
alp = [chr(i) for i in range(65, 91)]
while True:
tot = 0
s = input().upper()
if s == '#':
break
else:
s = set(s)
for i in s:
if i in alp:
tot += 1
print(tot)
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 8393번 합 (0) | 2020.12.05 |
---|---|
[Baekjoon/Python3] 8370번 Plane (0) | 2020.12.05 |
[Baekjoon/Python3] 7568번 덩치 (0) | 2020.12.05 |
[Baekjoon/Python3] 7567번 그릇 (1) | 2020.12.05 |
[Baekjoon/Python3/C] 7287번 등록 (0) | 2020.12.05 |
Comments