Advent of code 2015 solutions https://adventofcode.com/2015/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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)