-
[python]백준 그릇 7567번알고리즘 문제풀이/백준(파이썬) 2023. 5. 8. 22:39
코드
import sys sys.stdin = open("7567.txt", "r") q=list(input()) s=0 for i in range(len(q)): if i==0 or q[i]!=q[i-1]: s+=10 else : s+=5 print(s)
링크
https://www.acmicpc.net/problem/7567
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 베라의 패션 15439번 (0) 2023.05.10 [python]백준 AFC 윔블던 4299번 (0) 2023.05.09 [python]백준 수학은 체육과목 입니다 15894번 (0) 2023.05.07 [python]백준 두 수의 합 3273번 (0) 2023.05.06 [python]백준 멘토와 멘티 26265번 (0) 2023.05.05