백준_1436_영화감독 숌

임정민·2022년 11월 29일
3

알고리즘 문제풀이

목록 보기
8/173
post-thumbnail

코딩테스트 연습 스터디 진행중 입니다. ✍✍✍
Notion : https://www.notion.so/1c911ca6572e4513bd8ed091aa508d67

문제

https://www.acmicpc.net/problem/1436

풀이

[나의 풀이]

i = 0
cnt = 0
N = int(input())

while True:
    i+=1
    i = str(i)
    if '666' in i:
        cnt+=1
    if cnt == N:
        break
    i = int(i)
print(i)

[팀원의 풀이]

이번 문제는 풀이가 전부 비슷하였다.

감사합니다.👨‍🔧👨‍🔧👨‍🔧

profile
https://github.com/min731

0개의 댓글