Skip to main content
added 1 character in body
Source Link
xnor
  • 145.5k
  • 26
  • 277
  • 644

Python 2, 5958 bytes

n=1
for c in input():n=n*128+ordn=n<<7|ord(c)
print'1'+bin(n^n/2)[4:]

Try it online!Try it online!

Python 2, 59 bytes

n=1
for c in input():n=n*128+ord(c)
print'1'+bin(n^n/2)[4:]

Try it online!

Python 2, 58 bytes

n=1
for c in input():n=n<<7|ord(c)
print'1'+bin(n^n/2)[4:]

Try it online!

Source Link
xnor
  • 145.5k
  • 26
  • 277
  • 644

Python 2, 59 bytes

n=1
for c in input():n=n*128+ord(c)
print'1'+bin(n^n/2)[4:]

Try it online!