mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-07 18:10:55 +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
3cf6be0b7b
commit
4cde2d498b
|
@ -14,6 +14,7 @@ super_digit(9875987598759875), which can be reduced by summing its digits.
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
def superDigit(n: str, k: int) -> int:
|
def superDigit(n: str, k: int) -> int:
|
||||||
"""
|
"""
|
||||||
Computes the super digit of a number formed by concatenating n k times.
|
Computes the super digit of a number formed by concatenating n k times.
|
||||||
|
@ -45,7 +46,8 @@ def superDigit(n: str, k: int) -> int:
|
||||||
|
|
||||||
return total_sum
|
return total_sum
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
if __name__ == "__main__":
|
||||||
# Read input and split it into n and k
|
# Read input and split it into n and k
|
||||||
first_multiple_input = input().rstrip().split()
|
first_multiple_input = input().rstrip().split()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user