From ffca1dcdc07a04875771d81e0ea19d57566dcb28 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 31 Aug 2020 21:17:35 -0500 Subject: Add pseudocode --- test.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test.txt 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 -- cgit v1.2.3-70-g09d2