#!/usr/bin/python
# -*- coding: UTF-8 -*-

import math
for i in range(10000):
    #转化为整型值
    x = int(math.sqrt(i + 100))
    y = int(math.sqrt(i + 268))
    if(x * x == i + 100) and (y * y == i + 268):
        print i

 

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-01-04
  • 2021-09-10
  • 2021-05-02
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-08-31
  • 2021-10-16
相关资源
相似解决方案