From c32a2593ef6c32c93853762fd9f38d45a73078cf Mon Sep 17 00:00:00 2001 From: Steve Ren Date: Sat, 3 Oct 2020 15:00:48 +0800 Subject: [PATCH] finish --- .gitignore | 1 + cuowujilu.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 cuowujilu.py 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))