Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
maximprysyazhnikov committed Oct 18, 2024
1 parent a137fe3 commit 83ebba5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,5 @@ def wrapper(*args: Tuple[Any], **kwargs: Any) -> Any:


@cache
def long_time_func(base: int, exponent: int, modulus: int) -> int:
return (base ** exponent) % (base * modulus)


@cache
def long_time_func(base: int, exponent: int, modulus: int) -> int:
return (base ** exponent) % (base * modulus)
def long_time_func_2(n_tuple: tuple, power: int) -> list:
return [number ** power for number in n_tuple]

0 comments on commit 83ebba5

Please sign in to comment.