mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 14:43:43 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
849e0b38d5
commit
545d4aaa64
|
@ -14,6 +14,7 @@ super_digit(9875987598759875), which can be reduced by summing its digits.
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
def super_digit(n_str: str, repetitions: int) -> int:
|
def super_digit(n_str: str, repetitions: int) -> int:
|
||||||
"""
|
"""
|
||||||
Computes the super digit of a number formed by concatenating n_str repetitions times.
|
Computes the super digit of a number formed by concatenating n_str repetitions times.
|
||||||
|
@ -45,7 +46,8 @@ def super_digit(n_str: str, repetitions: int) -> int:
|
||||||
|
|
||||||
return total_sum
|
return total_sum
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
if __name__ == "__main__":
|
||||||
# Read input and split it into n_str and repetitions
|
# Read input and split it into n_str and repetitions
|
||||||
first_multiple_input = input().rstrip().split()
|
first_multiple_input = input().rstrip().split()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user