aboutsummaryrefslogtreecommitdiff
path: root/test.txt
diff options
context:
space:
mode:
authorAnthony Wang2020-08-31 21:17:35 -0500
committerAnthony Wang2020-08-31 21:17:35 -0500
commitffca1dcdc07a04875771d81e0ea19d57566dcb28 (patch)
tree85421f4958225194e769a87828aa2aadf6309e6e /test.txt
parentd787b142e190fec8dab62a7879600d9df823cea7 (diff)
Add pseudocode
Diffstat (limited to 'test.txt')
-rw-r--r--test.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test.txt b/test.txt
new file mode 100644
index 0000000..aa6c0fc
--- /dev/null
+++ b/test.txt
@@ -0,0 +1,20 @@
+Comment: Pseudocode
+
+define gcd(a, b)
+ if b > 0
+ return gcd(b, a mod b)
+ else
+ return a
+
+print "test"
+
+N = 1000
+A = []
+for i from 0 to N - 1
+ A[i] = i
+
+ans = 0
+for i in A
+ for j in A
+ ans = gcd(i, j) + ans
+print ans