Exemplo n.º 1
0
def main():
    xs = list(map(str.strip, sys.stdin.readlines()))

    print('part 1: ', count_it(filter(nice, xs)))

    print('part 2: ', count_it(filter(nice2, xs)))
Exemplo n.º 2
0
def las(n):
  return ''.join(str(count_it(g)) + k for k, g in groupby(n))
Exemplo n.º 3
0
def main():
  xs = list(map(str.strip, sys.stdin.readlines()))

  print('part 1: ', count_it(filter(nice, xs)))

  print('part 2: ', count_it(filter(nice2, xs)))
Exemplo n.º 4
0
def las(n):
    return ''.join(str(count_it(g)) + k for k, g in groupby(n))