若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
pass
若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
pass
若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
牛逼
若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
pass
若有更好的解法各位大大可在下方回復:
a=input().split()
c=int(a[0])
k=0
arm=0
d=int(a[1])+1
for i in range (c,d):
l=len(str(i))
b=str(i)
for j in range(0,l):
k+=int(b[j])**l
if k==i:
print(str(i), end=" ")
k=0
arm=1
else:
k=0
if (arm==0):
print("none")
else:
牛逼
6789