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 3de7332 commit 8506968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Round 2/tower_rush.py3
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def tower_rush():
cnt[d] += 1
result = 0
for d in DIVISORS[D]:
for i in range(0, len(cnt), d):
for i in range(d, len(cnt), d):
result = (result+nCr(cnt[i], K)*MU[i//d])%MOD
result = (result*FACT[K])%MOD
return result
Expand Down

0 comments on commit 8506968

Please sign in to comment.