LookSay/VoMaKu
LookSay/ziptitap
f1def LookSay():f1def LookSay():
n2    res = [1]n2    result = [1]
3    yield 13    yield 1
n4    while True:n4    while 1:
5        curr_dig = res[0]5        current = result[0]
6        __iter = []6        next_iter = []
7        n = 17        counter = 1
8        for i in res[1:] + [-1]:8        for i in result[1:] + [-1]:
9            if i != curr_dig:9            if i != current:
10                yield n10                yield counter
11                yield curr_dig11                yield current
12                __iter.extend([n, curr_dig])12                next_iter.extend([counter, current])
13                n = 113                counter = 1
14                curr_dig = i14                current = i
15            else:15            else:
t16                n += 1t16                counter += 1
17        res = __iter17        result = next_iter
18import sys18import sys
19exec(sys.stdin.read(), globals())19exec(sys.stdin.read(), globals())
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op