LookSay/ikarona | LookSay/pold | ||||
---|---|---|---|---|---|
n | n | 1 | import itertools | ||
2 | |||||
1 | def LookSay(): | 3 | def LookSay(): | ||
n | 2 | import itertools as it | n | 4 | number = '1' |
3 | LookSayStr = '1' | ||||
4 | while True: | 5 | while True: | ||
n | 5 | for i in LookSayStr: | n | 6 | for i in number: |
6 | yield int(i) | 7 | yield int(i) | ||
t | 7 | LookSayStr = ''.join((str(len(list(g))) + k for (k, g) in it.groupby(LookSayStr))) | t | 8 | number = ''.join((str(len(list(j))) + i for (i, j) in itertools.groupby(number))) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|