题解 | #简单错误记录#
简单错误记录
https://www.nowcoder.com/practice/2baa6aba39214d6ea91a2e03dff3fbeb
import sys re1,table1 = [],{} for line in sys.stdin: a = line.strip().split(" ") a0 = a[0].split("\\") tamp = a0[-1][-16:]+" "+a[1] if tamp not in table1: table1[tamp] = 1 re1.append(tamp) else: table1[tamp] +=1 for i in re1[-8:]: print(i,table1[i])