boj 1436

less than 1 minute read

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

order = int(input())
terminal = 666
count = 1

while True:
    if order == 1:
        print(terminal)
        break
    terminal = terminal + 1
    if '666' in str(terminal):  
        count = count + 1
        if order == count:
            print(terminal)
            break
notion
  • 간단한 brute force 문제

Categories:

Updated: