Латарцев Константин Владимирович, ФКИ, группа 105 LookSay 10174
Chiganov Aleksey Andreevich M108 Facultet of Space Research MSU LookSay 9079
t1def LookSay():t1def LookSay():
2    output = [1]2    output = [1]
3    while True:3    while True:
4        for item in output:4        for item in output:
5            yield item5            yield item
6        next_output = []6        next_output = []
7        count = 17        count = 1
8        for i in range(len(output)):8        for i in range(len(output)):
9            if i < len(output) - 1 and output[i] == output[i + 1]:9            if i < len(output) - 1 and output[i] == output[i + 1]:
10                count += 110                count += 1
11            else:11            else:
12                next_output.extend([count, output[i]])12                next_output.extend([count, output[i]])
13                count = 113                count = 1
14        output = next_output14        output = next_output
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op