aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-09-11 11:04:48 -0500
committerAnthony Wang2020-09-11 11:04:48 -0500
commit7d881a8f64cdef12df52276e008eb350737ef41b (patch)
tree95a805e206b66aec338633f64e441600cffabfcc
parent22e061794c8f163c8d4777a13c30f42d0122a262 (diff)
Add test.jl
-rw-r--r--test.jl24
1 files changed, 24 insertions, 0 deletions
diff --git a/test.jl b/test.jl
new file mode 100644
index 0000000..fd8944a
--- /dev/null
+++ b/test.jl
@@ -0,0 +1,24 @@
+# Julia
+
+function gcd(a, b)
+ if (b > 0) return gcd(b, a % b)
+ else return a
+ end
+end
+
+println("test")
+
+N = 1000
+A = []
+for i in 0:N-1
+ push!(A, i)
+end
+
+ans = 0
+for i in A
+ for j in A
+ global ans
+ ans += gcd(i, j)
+ end
+end
+println(ans)