Виноградов Владимир Игоревич, ОУ Севастополь LookSay 5222
Долгих Данила LookSay 5230
f1def LookSay():f1def LookSay():
n2    cur = '1'n2    current = '1'
3    while True:3    while True:
n4        for ch in cur:n4        for digit in current:
5            yield int(ch)5            yield int(digit)
6        nxt = ''6        next_seq = ''
7        i = 07        i = 0
n8        while i < len(cur):n8        while i < len(current):
9            cnt = 19            count = 1
10            while i + 1 < len(cur) and cur[i] == cur[i + 1]:10            while i + 1 < len(current) and current[i] == current[i + 1]:
11                cnt += 111                count += 1
12                i += 112                i += 1
n13            nxt += str(cnt) + cur[i]n13            next_seq += str(count) + current[i]
14            i += 114            i += 1
t15        cur = nxtt15        current = next_seq
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op