for a in range(1,10):
for b in range(0,10):
c = a*1100+11*b
m = int(c**0.5)
if m**2 == c:
print(c)
算法竞赛入门经典(python实现)——输出所有形如aabb的完全平方数
最新推荐文章于 2022-09-27 08:28:03 发布
for a in range(1,10):
for b in range(0,10):
c = a*1100+11*b
m = int(c**0.5)
if m**2 == c:
print(c)