Create test.py

This commit is contained in:
Anthony Wang 2020-09-03 10:12:11 -05:00
parent d865951187
commit d12fb76f37
No known key found for this signature in database
GPG key ID: DCDAC3EF330BB9AC

18
test.py Normal file
View file

@ -0,0 +1,18 @@
# Python 3
def gcd(a, b):
if b > 0: return gcd(b, a % b)
else: return a
print("test")
N = 1000
A = []
for i in range(0, N):
A.append(i)
ans = 0
for i in A:
for j in A:
ans += gcd(i, j)
print(ans)