Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Ren authored and Steve Ren committed Oct 3, 2020
1 parent 7cc02ce commit c32a259
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test.py
test1.py
19 changes: 19 additions & 0 deletions cuowujilu.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit c32a259

Please sign in to comment.