题目:
代码:
nums = [str(x) for x in range(10)]
nums = set(nums)
res = 1
while True:
temp = ''
temp += str(res**2)
temp += str(res**3)
temp = set(temp)
if temp == nums:
print(res)
break
res +=1
结果:69
题目:
代码:
nums = [str(x) for x in range(10)]
nums = set(nums)
res = 1
while True:
temp = ''
temp += str(res**2)
temp += str(res**3)
temp = set(temp)
if temp == nums:
print(res)
break
res +=1
结果:69