题解 | #The Biggest Water Problem#

The Biggest Water Problem

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

def compute_num(x): while len(x) != 1: end = 0 for item in str(x): end += int(item) x = str(end) return x

a = input() print(compute_num(a))

全部评论

相关推荐

不愿透露姓名的神秘牛友
03-30 21:35
爱蜜莉雅碳劝退测开:裁员裁大动脉了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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