题解 | #简单错误记录#
简单错误记录
http://www.nowcoder.com/practice/2baa6aba39214d6ea91a2e03dff3fbeb
l = [] ll = [] while 1: try: s = input().split('\\')[-1] data = s.split(' ')[0][-16:] + ' ' + s.split(' ')[1] if data not in l: l.append(data) ll.append(1) else: ll[l.index(data)] += 1 except: break for i in range(len(l[-8:])): print(l[-8:][i], ll[-8:][i])