LookSay/ziptitap
LookSay/VoMaKu
f1def LookSay():f1def LookSay():
n2    result = [1]n2    res = [1]
3    yield 13    yield 1
n4    while 1:n4    while True:
5        current = result[0]5        curr_dig = res[0]
6        next_iter = []6        __iter = []
7        counter = 17        n = 1
8        for i in result[1:] + [-1]:8        for i in res[1:] + [-1]:
9            if i != current:9            if i != curr_dig:
10                yield counter10                yield n
11                yield current11                yield curr_dig
12                next_iter.extend([counter, current])12                __iter.extend([n, curr_dig])
13                counter = 113                n = 1
14                current = i14                curr_dig = i
15            else:15            else:
t16                counter += 1t16                n += 1
17        result = next_iter17        res = __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