Baekjoon #1436

Baekjoon #1436

1개의 풀이 · Python

문제 원문 보기 ↗

SOLUTION INFO

Python · main.py

main.py
import sys

def input():
    return sys.stdin.readline().rstrip()

N = int(input())
ct = 0
ans = 0
num = 666

while True:

    if '666' in str(num):
        ct += 1

    if ct == N:
        ans = num
        break

    num += 1

print(ans)

SOLUTION DESCRIPTION

풀이 설명

등록된 풀이 설명이 없습니다.