题解 | The Biggest Water Problem
The Biggest Water Problem
https://www.nowcoder.com/practice/435aa556e093463891f6da7d322140a4
def f(n): sum = 0 for i in str(n): sum += int(i) if 0 < n < 10: return n return f(sum) n = int(input()) print(f(n))#pyhton#