— coding: utf-8 —
# # Integer-coding:
+ 100 + 268 is a perfect square
# + coding: utf-8 —
#
from math import sqrt
def f(number):
for x in range(0,number):
m=sqrt(x+100)
n=sqrt(x+268)
if mint(m) and nint(n):
print x
If name = = “main” :
f (1000).
Running results:
21
261
Read More:
- Python’s direct method for solving linear equations (5) — square root method for solving linear equations
- Lingerror last 2 dimensions of the array must be square
- The method of constructing even order magic square (n = 4 * m)
- Video prediction beyond mean square error
- socket.error : [errno 10048] and view PID process number and port number
- Square root of X (implementation of binary search)
- In machine learning, the prediction errors in sklearn, such as mean square error, etc
- Laravel 500 server error, perfect solution
- The perfect solution of VS2010 console program running in a flash
- Importerror: the perfect solution of no module named CV2!!! (not too good)
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- Struts2 is cracked, a serious loophole, a perfect solution
- PIP installation error: Microsoft Visual C + + 14.0 is required perfect solution
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- PIP installation error: error: Microsoft Visual c++ 14.0 is required perfect solution
- Perfect solution to raise runtimeerror (“distributed package doesn’t have nccl”) in Windows system“
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- Error in comparing the size function of STL with negative number
- Python error type error: ‘range’ object does not support item assignment, solution