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.
12345678910 |
- #!/usr/bin/python
-
- import re
-
- input = '1113222113'
-
- for _ in range(50):
- input = ''.join(str(1 + len(m[1])) + m[0] for m in re.findall('(.)(\\1*)', input))
-
- print len(input)
|