Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Oct 23, 2023
1 parent 5eeae8c commit c6a375e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Round 2/wiki_race2.py3
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def wiki_race():
elif step == 4:
u, cnt, ret = args
if not adj[u]:
for k, v in Counter(x for x in S[u] if x not in lookup).items():
ret[k] = v
for x in S[u]:
if x not in lookup:
ret[x] = 1
continue
for k, v in Counter(x for x in S[u] if x not in lookup).items():
cnt[k] += v
for x in S[u]:
if x not in lookup:
cnt[x] += 1
for k, v in cnt.items():
if k in lookup:
continue
Expand Down

0 comments on commit c6a375e

Please sign in to comment.