Advent of code 2015 solutions https://adventofcode.com/2015/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10.py 177B

12345678910
  1. #!/usr/bin/python
  2. import re
  3. input = '1113222113'
  4. for _ in range(50):
  5. input = ''.join(str(1 + len(m[1])) + m[0] for m in re.findall('(.)(\\1*)', input))
  6. print len(input)