题解 | #The Biggest Water Problem#

The Biggest Water Problem

http://www.nowcoder.com/practice/435aa556e093463891f6da7d322140a4

笑了这题目

n=input()

def balalaMagic(s):
    sumNum=0
    for i in s:
        sumNum+=int(i)
    return str(sumNum)

while not (int(n)<10 and int(n)>=0):
    n = balalaMagic(n)

print(n)
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务