BOJ - 1436 - 영화감독 숌

Updated:

def solution():
    N = int(input())
    value = 666
    
    while N:
        if '666' in str(value):
            N -= 1
        value += 1
    print(value - 1)
solution()

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

Categories:

Updated:

Leave a comment