题解 | #牛牛的四叶玫瑰数#
牛牛的四叶玫瑰数
http://www.nowcoder.com/practice/b1ee23676ad54919b50aa1a09da1704e
笨方法来一个
while True:
try:I,r=list(map(int,input().split(" ")))
for i in range(0,10):
for j in range(0,10):
for k in range(0,10):
for l in range(0,10):
if 1000*i+100*j+10*k+l==i**4+j**4+k**4+l**4 and I<=1000*i+100*j+10*k+l<=r:
print(1000*i+100*j+10*k+l,end=" ")
except:
break