diff --git a/.gitignore b/.gitignore index 5890b09..4d8e905 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ test.py +test1.py \ No newline at end of file diff --git a/cuowujilu.py b/cuowujilu.py new file mode 100644 index 0000000..6ba214b --- /dev/null +++ b/cuowujilu.py @@ -0,0 +1,19 @@ +from collections import defaultdict + +dic = defaultdict(int) +res = [] + +while True: + try: + s = input() + if s == '': break + s = s.split(' ') + fn = s[0].split('\\')[-1][-16:] + ln = s[-1] + dic[fn+ln] += 1 + res.append([fn, ln, str(dic[fn+ln])]) + except: + break + +for i in res[-8:]: + print(' '.join(i))