aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..f266d49
--- /dev/null
+++ b/test.py
@@ -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)