정렬중 1436 2751 10989

This commit is contained in:
2020-08-07 19:53:07 +09:00
parent f056a28dfb
commit 9e0f761ea7
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
N = int(input())
count = 0
now = 666
def isEnd(n):
k = 100
while k != 666:
if n < 100:
break
k = n % 1000
n //= 10
else:
return True
while count != N:
if isEnd(now):
count += 1
now += 1
print(now - 1) # Simple is the best