Skip to main content
deleted 1 character in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 2, 60 59 5958 bytes

  • Thanks @Felipe for 1 byte2 bytes
i,j,k='',01,input()
while len(i+`j+1`i+`j`)<k:j+=1;i+=`j`i+=`j`;j+=1
print print~-j

Try it online!Try it online!

Python 2, 60 59 bytes

  • Thanks @Felipe for 1 byte
i,j,k='',0,input()
while len(i+`j+1`)<k:j+=1;i+=`j`
print j

Try it online!

Python 2, 60 59 58 bytes

  • Thanks @Felipe for 2 bytes
i,j,k='',1,input()
while len(i+`j`)<k:i+=`j`;j+=1
print~-j

Try it online!

added 41 characters in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 2, 6060 59 bytes

  • Thanks @Felipe for 1 byte
i,j,k='0'k='',10,input()
while len(i+`j+1`)<k:j+=1;i+=`j`
print j

Try it online!Try it online!

Python 2, 60 bytes

i,j,k='0',1,input()
while len(i+`j+1`)<k:j+=1;i+=`j`
print j

Try it online!

Python 2, 60 59 bytes

  • Thanks @Felipe for 1 byte
i,j,k='',0,input()
while len(i+`j+1`)<k:j+=1;i+=`j`
print j

Try it online!

Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 2, 60 bytes

i,j,k='0',1,input()
while len(i+`j+1`)<k:j+=1;i+=`j`
print j

Try it online!