题解 | #牛牛的四叶玫瑰数#

牛牛的四叶玫瑰数

http://www.nowcoder.com/practice/b1ee23676ad54919b50aa1a09da1704e

a,b =[int(x) for x in input().split()]
for x in range(a,b+1):
    c=sum([int(x)**4 for x in str(x)])
    if x==c:
        print(x,end=" ")
全部评论

相关推荐

1 收藏 评论
分享
牛客网
牛客企业服务