Exemple #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)))
Exemple #2
0
def las(n):
  return ''.join(str(count_it(g)) + k for k, g in groupby(n))
Exemple #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)))
Exemple #4
0
def las(n):
    return ''.join(str(count_it(g)) + k for k, g in groupby(n))