Skip to content

Commit

Permalink
[2024/11] simplify num_stones()
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlitGhost committed Dec 11, 2024
1 parent 8f6d22b commit e640aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2024/11/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def blink_n_times(stones: dict[int, int], n: int) -> dict[int, int]:


def num_stones(stones: dict[int, int]) -> int:
return sum(count for _, count in stones.items())
return sum(stones.values())


def main():
Expand Down

0 comments on commit e640aa0

Please sign in to comment.