해피 코딩!

[백준] 영화감독 숌 1436번 본문

알고리즘

[백준] 영화감독 숌 1436번

지속가능한 성장을 2020. 12. 12. 07:11

link

value = 666

limit = int(input())
index = 0

while True:
    if '666' in str(value):
        index +=1

        if index == limit:
            print(value)
            break
    value +=1

'알고리즘' 카테고리의 다른 글

그래프 기본 탐색 알고리즘 - BFS, DFS  (0) 2020.12.13
[백준] 요세푸스 문제0  (0) 2020.12.12
[백준] 블랙잭 2798번  (0) 2020.12.12
[백준] 덩치 7568번  (0) 2020.12.12
[프로그래머스] 프린터  (0) 2020.12.12
Comments