[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-18 17:26:05 +00:00
parent 208b741003
commit 1d034b7243

View File

@ -24,8 +24,7 @@ super_digit(P) = super_digit(148148148)
= super_digit(1+2) = super_digit(1+2)
= super_digit(3) = super_digit(3)
= 3 = 3
""" """
""" """
@ -37,6 +36,8 @@ Sample Output 0
3 3
""" """
def superDigit(n, k): def superDigit(n, k):
# Calculate the initial sum of the digits in n # Calculate the initial sum of the digits in n
digit_sum = sum(int(digit) for digit in n) digit_sum = sum(int(digit) for digit in n)
@ -50,7 +51,8 @@ def superDigit(n, k):
return total_sum return total_sum
if __name__ == '__main__':
if __name__ == "__main__":
first_multiple_input = input().rstrip().split() first_multiple_input = input().rstrip().split()
n = first_multiple_input[0] n = first_multiple_input[0]