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