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