题解 | 小魔仙变身
The Biggest Water Problem
https://www.nowcoder.com/practice/435aa556e093463891f6da7d322140a4
n=input() while True: if len(str(n))>1: n=str(sum(list(map(int,n)))) else: print(n) break
The Biggest Water Problem
https://www.nowcoder.com/practice/435aa556e093463891f6da7d322140a4
n=input() while True: if len(str(n))>1: n=str(sum(list(map(int,n)))) else: print(n) break
相关推荐